Table of Contents Show
This is a guide to help Server Owners or Administrators. These commands can be used on Local Servers or Multiplayer Servers, you just need to be authenticated.
Other Fear the Night Guides:
- Fear the Night Console Commands
- Fear the Night Item ID List
- Fear the Night Robot Hack – UA Scout
- Fear the Night Types of Zombies
How to use the Admin Commands
Logging in as Admin
Press Tab, or whatever you have bound your console key to and type.
enablecheats <password>
example = enablecheats pass123
From here you can enter commands.
Whitelisting an Admin
This allows you to use commands without needing to login as Admin.
Create a file in the directory \Moonlight\Saved\ called AllowedCheaterSteamIDs.txt
It should look like this \Moonlight\Saved\AllowedCheaterSteamIDs.txt
From here, list on each line the Steam64 ID’s you wish to authorize, these users will be able to cheat without logging in as Admin. To get the Steam64 ID you can use https://steamid.io/
Admin Commands – Part 1
enablecheats <password> – Logs you in as the administrator
ShowMyAdminManager – Enables the Admin UI
cheat listplayers – Shows a list of all players on the server with their SteamID
cheat saveworld – Saves the current worldstate
cheat settimeofday <timestring> – Changes the time of day, for example cheat settimeofday 12:00
cheat god – Enables godmode, you can not die except you can still drown
cheat fly – Allows you to fly.
cheat walk – Deactivates flying and allows you to walk again.
cheat ghost – Turns on noclip, you are able to walk through walls and objects.
cheat destroyallenemies – Destroys all enemies, they respawn eventually.
cheat kill – Instantly kills the targeted creature or structure, leaving behind a corpse.
DestroyMyTarget – Instantly destroys the creature or structure in the current player’s crosshairs, without leaving any corpse.
cheat setplayerpos 0 0 0 Allows you to teleport to coords.
cheat SetPlayerSpeedModifier <number> Allows you run super fast, don’t go over 10.
cheat teleport Teleports you to coords 0 0 0 (X Y Z)
cheat teleporttoplayer <id> Teleports to the specificed player, use showmyadminmanager to get the 9 digit number to fill in the [id] field
cheat TeleportPlayerNameToMe <PlayerName> Teleports the player specified by their steam name.
cheat TeleportPlayerIDToMe <PlayerID> Teleports the player specified by their in-game ID to the current player.
cheat infinitestats Gives you infinite hunger, stamina and infinite ammo
cheat addexperience 1000 0 0 Gives you 1000xp, you can change the value and if you change the second 0 to a 1 it will share the xp among your tribe
cheat GiveExpToTarget <QTY> <tribeshared> <preventsharing> Same as AddExperience, but adds it to the player or robot you’re currently looking at
cheat giveexptoplayer <id> <QTY> <tribeshared> <preventsharing> Gives experience to another player, use showmyadminmanager for the required information. Unable to test currently.
Admin Commands – Part 2
Give Item via ID
cheat giveitemnum <ItemID> <QTY> <Quality> <True/False>
Info: Gives you an item, the list of items with their ID’s can be found below. Example: giveitemnum 0 1 0 false gives you 1 Arrow.
Give Item via Blueprint
cheat giveitem <ItemName> <QTY> <Quality> <True/False>
Info: Gives you an item of specified <ItemName> <QTY> <Quality> <True/False>. Example:giveitem “Blueprint’/Game/Moonlight/CoreBlueprints/Items/Consumable/Canned/MLItemConsumable_CannedFruit.MLItemConsumable_CannedFruit” 1 0 false gives you canneed fruit. A list of <ItemNames> can be found in the below package.
Gives Item to Player via ID
cheat giveitemnumtoplayer <PlayerID> <ItemID> <QTY> <Quality> <True/False>
Info: Gives <PlayerID> an item of specified, <ItemID> <QTY> <Quality> <True/False>. Example:giveitemnumtoplayer 399414114 0 1 0 false gives [PlayerID] 1 Arrow. A list of [ItemIDs] can be found below. [PlayerIDs] can be found using ShowMyAdminManager.
Gives Item to Player via Blueprint
cheat giveitemtoplayer <PlayerID> <ItemName> <QTY> <Quality> <True/False>
Info: Gives <PlayerID> an item of specified <ItemName> <QTY> <Quality> <True/False>. Example:giveitemtoplayer 399414114 “Blueprint’/Game/Moonlight/CoreBlueprints/Items/Consumable/Canned/MLItemConsumable_CannedFruit.MLItemConsumable_CannedFruit” 1 0 false gives <PlayerID> canned fruit. A list of <ItemNames> can be found in the below package. <PlayerIDs> can be found using ShowMyAdminManager.
POI / Lair: Teleport Commands
Starting Area cheat setplayerpos -307997 249448 -34000
[Area 1] School cheat setplayerpos -279294 228443 -34575
[Area 1] Lair cheat setplayerpos -219399 219810 -35550
[Area 2] Sewage Treatment cheat setplayerpos -93316 210034 -30000
[Area 2] Lair cheat setplayerpos -64697 237158 -30100
[Area 3] Grocery cheat setplayerpos -120312 114198 -31550
[Area 3] Lair cheat setplayerpos -203844 130668 -25275
[Area 4] Junkyard cheat setplayerpos -144304 80081 -31050
[Area 4] Lair cheat setplayerpos -182506 74779 -27850
[Area 5] Cement Plant cheat setplayerpos -214748 -18565 -31375
[Area 5] Lair cheat setplayerpos -217573 20714 -29450
[Area 6] Lumber cheat setplayerpos -38454 129409 -33350
[Area 6] Gas Station cheat setplayerpos -117981 63136 -32200
[Area 6] Lair cheat setplayerpos -81910 103939 -27650
[Area 7] Police Station cheat setplayerpos -41441 178845 -32700
[Area 7] Warehouse cheat setplayerpos -27600 239774 -31875
[Area 7] Lair cheat setplayerpos -21994 168890 -32975
[Area 8] Pharmacy cheat setplayerpos 124316 250505 -25650
[Area 8] Lair cheat setplayerpos 87027 239650 -25500
[Area 9] Factory cheat setplayerpos -213910 -56284 -35200
[Area 9] Lair #1 cheat setplayerpos -245124 -40896 -35950
[Area 9] Lair #2 cheat setplayerpos -245192 -131239 -36100
Scout / Enforcer Spawn Codes
cheat forcetame
It will automatically Tame what you are looking at.
Spawn Scout (Tamed)
cheat spawnactortamed “/Game/Moonlight/Character/UA/UA_Scout_01/UA_Scout_CharacterBP.UA_Scout_CharacterBP” 0 200 0
Spawn Enforcer (Tamed)
cheat spawnactortamed “/Game/Moonlight/Character/UA/UA_Enforcer_01/UA_Enforcer_CharacterBP.UA_Enforcer_CharacterBP” 0 200 0
Spawn Scout (Not Friendly)
cheat spawnactor “/Game/Moonlight/Character/UA/UA_Scout_01/UA_Scout_CharacterBP.UA_Scout_CharacterBP” <spawnDistance> <spawn-Y-offset> <Z-offset>
Spawn Enforcer (Not Friendly)
cheat spawnactor “/Game/Moonlight/Character/UA/UA_Enforcer_01/UA_Enforcer_CharacterBP.UA_Enforcer_CharacterBP” <spawnDistance> <spawn-Y-offset> <Z-offset>
Spawn Scout with Levels (Not Friendly)
cheat SpawnNpc “/Game/Moonlight/Character/UA/UA_Scout_01/UA_Scout_CharacterBP.UA_Scout_CharacterBP” <spawnDistance> <spawn-Y-offset> <Z-offset> <Level>
Spawn Enforcer with Levels (Not Friendly)
cheat SpawnNpc “/Game/Moonlight/Character/UA/UA_Enforcer_01/UA_Enforcer_CharacterBP.UA_Enforcer_CharacterBP” <spawnDistance> <spawn-Y-offset> <Z-offset> <Level>
Below is Commands made to Spawn Robots with Levels and Tamed
Spawn Scout with Levels (Tamed)
cheat SpawnNpc “/Game/Moonlight/Character/UA/UA_Scout_01/UA_Scout_CharacterBP.UA_Scout_CharacterBP” 100 0 0 50|cheat forcetame
Spawn Enforcer with Levels (Tamed)
cheat SpawnNpc “/Game/Moonlight/Character/UA/UA_Enforcer_01/UA_Enforcer_CharacterBP.UA_Enforcer_CharacterBP” 100 0 0 50|cheat forcetame
Item ID List – Part 1
0 Arrows
1 Makeshift Ammo
2 Handgun Ammo
3 Field Point Arrows
4 Rifle Ammo
5 Shotgun Ammo
6 Makeshit Shoes
7 Beanie
8 Makeshift Jacket
9 Makeshift Pants
10 Carboard Top 1
11 Carboard Bottom 1
12 Carboard Bottom 2
13 Cardboard Top 2
14 Carboard Bottom 3
15 Cardboard Top 3
16 Snow Boots
17 Hide Top 1
18 Hide Bottom 1
19 Hide Helmet 1
20 Hide Top 2
21 Hide Bottom 2
22 Hide Helmet 2
23 Hide Top 3
24 Hide Bottom 3
25 Hide Helmet 3
26 Plate Top 1
27 Plate Bottom 1
28 Plate Helmet 1
29 Plate Top 2
30 Plate Bottom 2
31 Plate Helmet 2
32 Plate Top 3
33 Plate Bottom 3
34 Plate Helmet 3
35 Undershirt
36 T-Shirt
37 Jacket
38 Motorcycle Jacket
39 Tank Top
40 Ballistic Vest
41 Sneakers
42 Ragged Pants
43 Cargo Pants
44 Combat Boots
45 Miner Helmet
46 Motorcycle Helmet
47 Riot Jacket
48 Bandages
49 Hemostaic
50 Healing Potion
51 Flavored Fruit Tea
52 Smaller Antibiotic Potion
53 Fruit Pie
54 Greater Potion
55 Casserole
56 Adrenaline
57 Greater Healing Potion
58 Greater Antibiotice Potion
59 Veggie Soup
60 Super Healing Potion
61 Hearty Soup
62 Veggie Stewed Chops
63 Resetting Potion
64 Apple
65 Blueberry
66 Grape
67 Ground Meat
68 Fatty Meat
69 Prime Meat
70 Tomato
71 Carrot
72 Potato
73 Charred Meat Scraps
74 Kabobs
75 Grilled Steak
76 Antibiotic
77 Zombie Venom
78 Zombie Tissue
79 Zombie Plasma
80 Echinacea
81 Bottle of Pure Water
82 Bottle of Tainer Water
83 Charcoal
84 Cloth
85 Empty Bottle
86 Cement
87 Glue
88 Plywood
89 Makeshift Part
90 Hide
91 Gunpowder
92 Mechanical Part
93 PC-ABS
94 Alluminum Alloy
95 Peroxide
96 Bleach
97 Rubbing Alcohol
98 Ammonia
99 Wood
100 Hempen Strands
101 Stone
102 Sand
103 Recycled Plastic
104 Resin
105 Recycled Metal
106 Metal
107 Aluminum
108 Cardboard
109 Fur
110 Microchip
111 Jug of Gasoline
112 Chemicals
113 Circuit
114 Duct Tape
115 Cookware
116 Nail
117 Pipe Fitting
118 Hinge
119 Bolts
120 Shrapnel
121 Spring
122 Gears
123 Pipe
124 Car Battery
125 Laptop
126 Power Tool
127 Handgun Parts
128 Shotgun Parts
129 SMG Parts
130 Rifle Parts
131 Activation Code: Scout
132 Activation Code: Enforcer
133 Electric Motor
134 License Plate
135 Plastic Bag
136 Plastic Straw
137 Toothbrush
138 DVD
139 Vacuum Cup
140 Cultery
141 Kitchenware
142 Key
143 Latch
144 Empty Can
145 Broken Handgun
146 Broken Shotgun
147 Broken Rifle
148 Broken SMG
149 Gas Motor
150 Flour
Item ID List – Part 2
151 Campfire
152 Tent
153 Handy Box
154 Workbench
155 Small Chest
156 Salvage Bench
157 Spiked Wall
158 Makeshift Double Doors
159 Makeshift Door
160 Weapon Bench
161 Armor Bench
162 Sandbag Wall
163 Construction Bench
164 Cabinet
165 Medicine Bench
166 Stove
167 Fridge
168 Metal Spiked Wall
169 Distillery
170 Reinforced Double Doors
171 Reinforced Door
172 Wired Fence
173 Storage Room
174 Metal Double Doors
175 Metal Door
176 Oven
177 Machine Tool
178 Safe
179 Watch Tower
180 Metal Gate
181 HESCO Wall (Low)
182 HESCO Wall (High)
183 Makeshift Ramp
184 Table Leg
185 Hacking Tablet
186 Torch
187 Throwing Stone
188 Wooden Club
189 Stone Axe
190 Stone Hammer
191 Spiked Wood Club
192 Spiked Table Leg
193 Makeshift Bow
194 Pipe Pistol
195 Hatchet
196 Claw Hammer
197 Pipe Shotgun
198 Handmade Machete
199 Molotov
200 Wooden Recurve Bow
201 Machete
202 Single Shot Pistol
203 Bat
204 Signal Flare
205 Chained Bat
206 SM-11
207 38 Special Revolver
208 Sawedoff Shotgun
209 Compound Bow
210 Woodhafted Metal Axe
211 Grenade
212 Sledgehammer
213 MP9
214 Metal Bat
215 M1A
216 Katana
217 M191
218 Crossbow
219 Claymore
220 Hunting Shotgun
221 Pipe Rifle
222 44 Mamba
223 WP5
224 Composite Axe
225 Breaching Sledgehammer
226 AK47
227 AR-15
228 Pump Shotgun
229 Hunting Rifle
230 Small Metal Pipe
231 Large Metal Pipe
232 Shovel
233 Pipe Hammer
234 Pinion Mace
235 Map
236 Small Generator
237 Medium Generator
238 Large Generator
Other Item’s Without ID’s
Give Canned Meat
cheat giveitem “Blueprint’/Game/Moonlight/CoreBlueprints/Items/Consumable/Canned/MLItemConsumable_CannedMeat.MLItemConsumable_CannedMeat” 1 0 0
Give Canned Fruit
cheat giveitem “Blueprint’/Game/Moonlight/CoreBlueprints/Items/Consumable/Canned/MLItemConsumable_CannedFruit.MLItemConsumable_CannedFruit” 1 0 0
Frequently Asked Questions
Q: How do I get the id of a player using ShowMyAdminManager?
A: Currently the easiest way is to double click the persons name in the Menu, then on the right side goto execute a command like ListPlayers, after that click Exec, and click Copy ID. it will paste it in the box. Highlight it, and hit CTRL+C to copy it, then hit Cancel to not issue any command.
Q: How do I summon a Scout or Enforcer of a certain level?
A: You can summon a Scout or Enforcer of a certain level using this command:cheat SpawnActor <blueprintPath> <spawnDistance> <spawn-Y-offset> <Z-offset> <Level> and changing <Level> to your desired level. Find this command in the table above.
Q: How do I limit the commands Admins are able to use?
A: You currently can not, if you want to set other people on your server as an Administrator you either need to trust them with all the commands, or not at all.
Q: How do I disable cheats such as god or infinitestats?
A: Type the same command again to turn them off.