Configuration
The options that matter most in open/config.lua.
Everything you edit lives in the open/ folder (config.lua, the framework bridge, the locales and your own powers) and in shared.lua. Do not edit client.lua, server.lua or token.lua. After changing anything, restart with restart rvt-hunt.
| Option | Default | What it does |
|---|---|---|
Config.Locale | "pt" | Language of the UI and texts: "pt", "en" or "es". |
Config.Framework | "standalone" | Default: no framework. "auto" detects Qbox, QBCore, ESX and vRP; also accepts "esx", "qbcore", "qbox" or "vrp". Config.Resources adjusts the resource names. |
Config.InitialMaps | Enable = true | Loads the six included arenas (maps-import.json) only on the first start with no maps saved in the editor. |
Config.Appearance | "auto" | Clothing system used to restore the appearance after the killer costume. Configure and test it: see Bridge.SaveAppearance and Bridge.RestoreAppearance in open/bridge/client.lua. |
Config.Staff.Ace | "rvthunt.staff" | Staff ACE permission. Config.Staff.Groups and VrpGroups ship empty; the server owner fills them in. |
Config.Commands | /hunt… | Name of each command. false turns the command off. |
Config.Lobby.Npc.Enable | false | NPC with a blip that opens the lobby. |
Config.Lobby.Points.Enable | false | Map points without an NPC: blip and ground marker; E opens the lobby. Put the coordinates in Config.Lobby.Points.List. |
Config.Ranking.Season | "1" | Change it to start a new season; the old one stays stored. |
Config.Ranking.Storage | "auto" | "auto" (oxmysql if present, otherwise KVP), "oxmysql", "kvp" or "off". |
Config.Arena.MaxMatches | 2 | Simultaneous matches on the whole server. |
Config.Arena.RandomRoles | true | The killer is always drawn; whoever was the killer last match is drawn last. |
Config.Hunt.MinPlayers | 3 | Minimum players to start (1 killer and 2 survivors). Smaller tests use /huntteste, staff only. |
Config.Hunt.MaxPlayers | 12 | Maximum size of a room with friends. |
Config.Hunt.QueueMax | 6 | Maximum size of public queue matches. |
Config.Hunt.TwoKillersAt | 6 | Players in the room to allow 2 killers (MaxKillers). |
Config.Hunt.DurationSeconds | 720 | Maximum match length, in seconds. |
Config.Hunt.CollapseSeconds | 120 | Final countdown once the generators are on; whoever has not escaped is eliminated. |
Config.Hunt.ChestCount | 3 | Chests on the map at the same time. |
Config.Scene | Hour = 23, "FOGGY" | Time and weather only for players in the match. |
Config.BucketBase | 940000 | First routing bucket used by matches. Pick a range no other resource uses. |
Killer powers (18)
Each character in Config.Hunt.Killer.Costumes points to one of these powers through the Power key. Cooldown, duration and range of each one live in Config.Hunt.Killer.Powers.
| Id | Power | Effect |
|---|---|---|
throw | Throw | throws the weapon from afar |
dream | Nightmare | nearby survivors fall asleep |
rage | Fury | fast hits, pallets do not stun |
blink | Apparition | reappears behind the nearest survivor |
gifts | Gifts | trap boxes on the ground |
domain | Domain Expansion | pulls the nearest survivor into the domain |
show | Horror Show | blurs their vision, scare from behind |
speed | Speed | top speed, everyone nearby slowed |
flight | Flock | flies and dives on target |
winter | Eternal Winter | ice area that slows and freezes |
shrine | Malevolent Shrine | circle of cuts around the killer |
musou | Musou no Hitotachi | line slash after a wind-up |
salon | Lonely Hall | servants attack players repairing generators |
dance | Fire God Dance | fire lunge on each click |
calc | Perfect Calculation | sees everyone and predicts movement |
reaper | Personal Hunt | marks a prey and sees it through walls |
silence | Silence | no heartbeat, light or music for them |
chainsaw | Chainsaw | charges forward and downs anyone it touches |
Perks (10 survivor, 12 killer)
Each survivor picks 2 perks at the start (Config.Hunt.PerkPick). Each killer picks 2 (Config.Hunt.Killer.PerkPick), on the Q and R keys.
Survivor: Dash, Get up alone, Quick hands, Light steps, Premonition, Nurse’s hands, Cold blood, Runner’s wind, Adrenaline, Retaliate.
Killer, active: Scent, Charge, Scream, Trap, Dark step, Padlock.
Killer, passive: Heavy blow, Relentless hunter, Thick skin, Whispers, Hook watcher, Firm grip.
Chest items (7)
Config.Hunt.ChestItems defines what can come out of chests; Config.Hunt.Items defines the name and numbers of each item.
| Id | Item | Effect |
|---|---|---|
medkit | Medkit | heals yourself (H, 8 s) |
toolbox | Toolbox | repairs 50% faster for 40 s of repair |
flashlight | Flashlight | blinds the killer for 2 s and makes him drop the carried survivor |
map | Map | shows generators, boxes, totems and chests for 12 s (2 uses) |
firecracker | Firecracker | bursts in 2 s and blinds the killer within 6 m |
amulet | Amulet | absorbs one hit that would down you |
key | Master key | opens the gate panel without wiring |
Full config.lua code
Structure summary, without lists and coordinates. The file in the download has everything commented.
-- open/config.lua (summary: lists and coordinates omitted)
Config.Locale = "pt" -- "pt" | "en" | "es"
Config.Framework = "standalone" -- "standalone" | "auto" | "esx" | "qbcore" | "qbox" | "vrp"
Config.InitialMaps = { Enable = true, File = "maps-import.json" } -- six included arenas, loaded when no maps are saved
Config.Resources = { Vrp = "vrp", QB = "qb-core", Qbox = "qbx_core", ESX = "es_extended" }
Config.Notify = "auto" -- "auto" | "ox" | "esx" | "qb" | "vrp" | "native"
Config.Appearance = "auto" -- "auto" | "illenium" | "fivem-appearance" | "esx" | "qb" | "vrp" | "snapshot"
Config.Debug = false
Config.Brand = { Title = "RVT Caçada", Subtitle = "RVT Scripts" }
Config.Keys = { PlayerCanChange = true, Power = "F", Perk1 = "Q", Perk2 = "R", Cancel = "Backspace", Interact = "E", Grab = "G", Item = "H", Sprint = "Z" }
Config.Commands = { Open = "hunt", Diary = "huntdiario", Rank = "huntrank", Tutorial = "hunttutorial", Test = "huntteste" } -- ...and the other staff commands; rename any of them, false disables a command
Config.DiaryKey = "F5"
Config.Staff = { Ace = "rvthunt.staff", Groups = {}, VrpGroups = {} }
Config.BucketBase = 940000 -- first routing bucket used by matches
Config.Lobby = { Npc = { Enable = false, Model = "s_m_m_movprem_01", Coords = vector4(0.0, 0.0, 0.0, 0.0), Key = 38, Distance = 2.0 } }
Config.Scene = { Enable = true, Hour = 23, Weather = "FOGGY", HideHud = true }
Config.PedCheck = { Enable = true, Seconds = 20 }
Config.Ranking = { Enable = true, Season = "1", Storage = "auto", Table = "rvt_hunt_rank" }
Config.Arena = {
StaffOnly = false,
RandomRoles = true, -- the killer is always drawn
MaxMatches = 2, -- simultaneous matches on the whole server
MaxQueue = 40,
AcceptSeconds = 20,
OfferSmallerAfter = 90, -- public queue offers a smaller match after this many seconds
}
Config.Hunt = {
MinPlayers = 3, -- 1 killer and 2 survivors; smaller tests use the staff command
MaxPlayers = 12,
QueueMax = 6,
MaxKillers = 2, TwoKillersAt = 6,
DurationSeconds = 720,
CollapseSeconds = 120, -- end-game countdown after the generators are on
PickPhase = true, PickSeconds = 40, StartCountdown = 5,
HooksToEliminate = 3,
ChestCount = 3, ChestRespawn = 60,
ChestItems = { "medkit", "toolbox", "flashlight", "map", "firecracker", "amulet", "key" },
PerkPick = 2, -- survivor perks chosen per match
Perks = { --[[ 10 survivor perks ]] },
Items = { --[[ 7 chest items ]] },
Killer = {
PerkPick = 2,
Perks = { --[[ 12 killer perks ]] },
Costumes = { --[[ 18 characters: Id, Name, Note, Power ]] },
Powers = { --[[ one entry per power ]] },
Weapons = { --[[ native weapons held as an object ]] },
},
}