Configuration
Every setting of Halloween in cl_config.lua, sv_config.lua, doors.lua, and pumpkin.lua
Every option is documented below. cl_config.lua is shared by the client and the server, so one edit applies to both, while sv_config.lua is only loaded by the server. Rewards use the same entry format everywhere: type is item, weapon, or account, item is the item name, weapon name, or the account (cash, bank, or black), label is the shown name, and amount is a number or { min, max }. Restart the resource after every change.
MS.Localeen- Language of the texts: de or en. A language of your own needs its line in fxmanifest.lua under shared_scripts, after backend/locale/de.lua.
MS.Locales{}- Table the locale files fill with their texts. Leave it empty.
MS.Imagesnui://ox_inventory/web/images/%s.png- Path the reward pictures load from, with %s replaced by the item name. Point it to the image folder of your inventory. A picture that does not load falls back to frontend/dist/items/<item>.png, so put the PNGs of your own items there.
MS.Jumpscare""- Image URL shown on a jumpscare.
MS.Settings.dev_modefalse- Developer mode for testing. Enable it while you debug and check the console.
MS.Settings.load_delay3000- Delay in milliseconds before the resource loads for a joining player.
MS.Settings.notify_time5000- Milliseconds a notification stays on screen.
MS.Settings.itemsyringe- Usable item that cures the zombie infection. It must exist in your inventory; if another script already uses syringe, set another item name.
MS.Settings.deleteDeadtrue- Deletes dead zombies from the world.
MS.Settings.areaDimension50- Base of the dimension a zombie area fight runs in. The player's source is added to it, so every player fights in his own dimension.
MS.Settings.infectTick5- Seconds between infection ticks.
MS.Settings.infectDamage5- Damage dealt per infection tick.
MS.Settings.infectHits{ min = 1, max = 4 }- Zombie hits until a player is infected, rolled between min and max on the first hit.
MS.Settings.infectTimecycleDRUG_gas_huffin- Screen filter while infected (timecycle modifier name).
MS.Settings.infectStrength0.6- Strength of that screen filter, 0.0 to 1.0.
MS.Settings.infectWalkmove_m@injured- Walk style while infected (movement clipset name).
MS.Settings.force.nighttrue- Holds the clock at midnight.
MS.Settings.force.thundertrue- THUNDER weather, a strong thunderstorm, while no outbreak runs.
MS.Settings.force.halloweentrue- HALLOWEEN weather with lightning flashes while an outbreak runs. Set all three force switches to false if your weather script should keep control of weather and clock.
MS.Commands.addaddcandy- Admin command /addcandy [source] [candies]: adds candies to a player.
MS.Commands.removeremovecandy- Admin command /removecandy [source] [candies]: removes candies from a player.
MS.Commands.setsetcandy- Admin command /setcandy [source] [candies]: sets the candies of a player.
MS.Commands.startOutbreakstartoutbreak- Admin command that starts an outbreak as set in MS.Outbreak.
MS.Commands.stopOutbreakstopoutbreak- Admin command that deletes every outbreak zombie, without the clear announcement.
MS.Commands.areashalloweenareas- Admin command that opens the zombie area creator.
MS.Sounds.jumpscare0.5- Volume of the jumpscare sound, 0.0 to 1.0.
MS.Sounds.announce0.5- Volume of the announcement sound, 0.0 to 1.0.
MS.Sounds.collect0.5- Volume of the collect sound, 0.0 to 1.0.
MS.Blips.shopenabled true, sprite 59, color 17, scale 0.8, shortRange true- Map blip of the candy shop. enabled switches it on or off, sprite, color, and scale set its look, and shortRange shows it only when the player is near.
MS.Blips.areaenabled true, sprite 310, color 17, scale 0.8, shortRange true, radius true, clearedColor 1- Map blip of the zombie areas, with the same keys as the shop blip. radius also shows the area radius on the map, and clearedColor is the color of an area's icon and radius once the player cleared it (1 = red).
MS.Shop.positionvec4(209.0995, -917.4229, 30.6921, 51.1778)- Position and heading of the candy shop.
MS.Shop.drawDistance15.0- Metres the shop marker shows from.
MS.Shop.interactDist1.5- Metres from the shop to open it.
MS.Shop.maxCandies500- Candies at the end of the shop's progress bar.
MS.Shop.pedenabled true, model ig_skeleton_01, scenario WORLD_HUMAN_STAND_IMPATIENT- The shop ped. model is the ped model and scenario the animation it plays. If enabled is false, the shop uses a marker instead.
MS.Shop.markertype 32, scale vec3(0.5, 0.5, 0.5), rotation vec3(0.0, 0.0, 0.0), color r 255 g 0 b 0 a 144, bobUpAndDown true, faceCamera false, rotate true- Look of the shop marker, which is used when the ped is disabled.
MS.Shop.rewardswater 25, bread 50, WEAPON_PISTOL 75, cash 100 candies- What players can buy with candies. Every entry has a type (item, weapon, or account), an item, a label, and candies as the price; items and accounts also have an amount. For account, item is cash, bank, or black.
MS.Doors.candyenabled true, amount { min = 1, max = 5 }- Candies a player gets when trick or treating at a door.
MS.Doors.jumpscareChanceenabled true, chance 15- Percentage chance for a jumpscare to occur at a door.
MS.Doors.peds.networkfalse- Network setting of the ped that opens the door. Leave it on false unless you have a reason to change it.
MS.Doors.peds.attackChance20- Percentage chance that the ped fights instead of giving a treat.
MS.Doors.peds.models10 ped models- Models of the peds that open the door, for example a_f_m_eastsa_01 or u_m_o_dean. Add or remove models as you like.
MS.Doors.markerenabled true, distance 50.0, height 1.0, type 32, scale vec3(0.4, 0.4, 0.4), color r 255 g 120 b 0 a 160, bobUpAndDown true, rotate true- Marker over every door within distance (metres) that the player has not knocked on yet. enabled only switches the drawing: doors are knocked on without it too. height is in metres above the door point, which itself is a metre above the ground.
MS.Doors.rewardswater 1-5, bread 1-5, WEAPON_PISTOL, cash 100-500- Rewards a door can give. Entries have a type (item, weapon, or account), an item, a label, and an optional amount, either a number or { min, max }.
MS.Pumpkins.modelreh_prop_reh_lantern_pk_01b- Prop of the collectable pumpkins. Needs sv_enforceGameBuild 2699 or higher.
MS.Pumpkins.collectTime3- Seconds the player kneels until the pumpkin is collected.
MS.Pumpkins.candyenabled true, amount { min = 1, max = 3 }- Candies for every pumpkin.
MS.Pumpkins.rewardswater 1-3, bread 1-3, cash 100-500- One of these rewards for every pumpkin, in the same entry format as the door rewards.
MS.Zombies6 zombie types, health 200, armor 0- The zombies that spawn in outbreaks and areas. Every entry has a model, a health, and an armor value. The defaults are g_m_m_zombie_04, g_m_m_zombie_05, ig_zombie_dj_01, u_m_y_zombie_01, ig_skeleton_01, and s_m_y_clown_01.
MS.Outbreak.zombies100- Zombies to kill until the city is cleared.
MS.Outbreak.spawnRate20- Zombies alive at once, each near a random player.
MS.Outbreak.rewardswater 1-2, bread 1-2, cash 2500-5000- All of these, once the city is cleared, for every player who killed at least one zombie.
MS.Areas.rewardsdefault pool: water 1-5, bread 1-5, WEAPON_PISTOL, cash 2500-5000- Reward pools that an area picks one of in the creator menu. Once the area is cleared, the player gets all rewards of its pool. You can add pools under their own name.
MS.Creator.bannerhttps://cdn.more-scripts.com/images/banner/ragemenu.png- Banner image of the creator menu.
MS.Creator.defaultsname Zombie Area, radius 50, zombies 20, spawnRate 5, rewards default- Values of a new area until changed in the menu. rewards is the name of a pool in MS.Areas.rewards.
MS.Creator.radius{ min = 10, max = 200 }- Limits of an area's radius in metres, whole numbers.
MS.Creator.zombies{ min = 1, max = 100 }- Limits of the total number of zombies in an area.
MS.Creator.spawnRate{ min = 1, max = 20 }- Limits of the zombies alive at once in an area.
MS.Admin (sv_config.lua)pl, admin, superadmin, god (all true)- Admin groups that may use the candy, outbreak, and zone commands. Set a group to true to allow it. This file is only loaded by the server.
Doors (doors.lua)1,170 positions- List of the vec3 positions of the doors for trick or treat. Add or remove positions to change where players can knock.
Pumpkins (pumpkin.lua)61 positions- List of the vec3 positions where the pumpkins spawn.
Last updated