RVT Hunt

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.

OptionDefaultWhat 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.InitialMapsEnable = trueLoads 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.EnablefalseNPC with a blip that opens the lobby.
Config.Lobby.Points.EnablefalseMap 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.MaxMatches2Simultaneous matches on the whole server.
Config.Arena.RandomRolestrueThe killer is always drawn; whoever was the killer last match is drawn last.
Config.Hunt.MinPlayers3Minimum players to start (1 killer and 2 survivors). Smaller tests use /huntteste, staff only.
Config.Hunt.MaxPlayers12Maximum size of a room with friends.
Config.Hunt.QueueMax6Maximum size of public queue matches.
Config.Hunt.TwoKillersAt6Players in the room to allow 2 killers (MaxKillers).
Config.Hunt.DurationSeconds720Maximum match length, in seconds.
Config.Hunt.CollapseSeconds120Final countdown once the generators are on; whoever has not escaped is eliminated.
Config.Hunt.ChestCount3Chests on the map at the same time.
Config.SceneHour = 23, "FOGGY"Time and weather only for players in the match.
Config.BucketBase940000First 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.

IdPowerEffect
throwThrowthrows the weapon from afar
dreamNightmarenearby survivors fall asleep
rageFuryfast hits, pallets do not stun
blinkApparitionreappears behind the nearest survivor
giftsGiftstrap boxes on the ground
domainDomain Expansionpulls the nearest survivor into the domain
showHorror Showblurs their vision, scare from behind
speedSpeedtop speed, everyone nearby slowed
flightFlockflies and dives on target
winterEternal Winterice area that slows and freezes
shrineMalevolent Shrinecircle of cuts around the killer
musouMusou no Hitotachiline slash after a wind-up
salonLonely Hallservants attack players repairing generators
danceFire God Dancefire lunge on each click
calcPerfect Calculationsees everyone and predicts movement
reaperPersonal Huntmarks a prey and sees it through walls
silenceSilenceno heartbeat, light or music for them
chainsawChainsawcharges 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.

IdItemEffect
medkitMedkitheals yourself (H, 8 s)
toolboxToolboxrepairs 50% faster for 40 s of repair
flashlightFlashlightblinds the killer for 2 s and makes him drop the carried survivor
mapMapshows generators, boxes, totems and chests for 12 s (2 uses)
firecrackerFirecrackerbursts in 2 s and blinds the killer within 6 m
amuletAmuletabsorbs one hit that would down you
keyMaster keyopens 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
-- 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 ]] },
    },
}