Skip to main content

config/config.lua

Main Settings

boolean
default:"false"
Shows interaction zones in game.
string
default:"\"projectx\""
The UI used for the handler conversation. "projectx" uses the projectx-ui cinematic dialog, "ox" uses an ox_lib alert dialog. If projectx-ui is not started, the ox_lib dialog is used automatically.
boolean
default:"true"
Shows the contract objectives on the projectx-ui task tracker. Requires projectx-ui to be started.
string
default:"\"left\""
Side of the screen the task tracker is shown on: "left" or "right".
number
default:"38"
The key code used to trigger drawtext interactions. 38 is [E] by default.
vector3
default:"vec3(1.5, 1.5, 2)"
The size of the drawtext interaction zone.
number
default:"3"
Maximum contracts running at the same time on the server. Each player can only have one contract, and each location can only host one.
number
default:"0"
Minimum number of police required online to take a contract. Set to 0 to disable.
table
default:"{\"police\"}"
The jobs that count as police for the MinimumPolice check and dispatch alerts.
table
default:"{\"police\", \"ambulance\"}"
Players with these jobs can’t take contracts.
number
default:"3500"
Duration of the displayed notifications in milliseconds.

Cooldowns & Limits

number
default:"10"
Per-player cooldown in minutes after a contract ends (completed, failed, or abandoned). Set to 0 to disable.
number
default:"0"
Maximum contracts that can be taken per server restart (not per player). Set to 0 to disable.
number
default:"0"
Maximum contracts a single player can take per restart. Set to 0 to disable.

Skill System

boolean
default:"false"
Requires players to meet a minimum level from an integrated XP/skill system before taking a contract. Must have an XP system configured in the bridge.
number
default:"10"
Minimum level required to take a contract. Only applies when SkillSystem is true.

Dispatch

Dispatch is sent when a witness reports a body, not when the contract starts.
string
default:"\"Homicide\""
Title shown in the dispatch alert.
string
default:"\"A witness reported a body\""
Message body shown in the dispatch alert.
string
default:"\"10-71\""
Radio code shown in the dispatch alert.
number
default:"5"
Time in seconds the dispatch alert remains visible. Not all dispatch systems support this.
table
Blip settings for the dispatch map marker.
number
default:"30"
Seconds between the kill and the dispatch (a witness calling it in).
number
default:"60"
Percentage chance of a dispatch when the target dies.
number
default:"15"
Percentage chance when the killing shot was suppressed.
number
default:"5"
Percentage chance when the target died in an “accident” (see Config.WeaponClasses["accident"]).
number
default:"100"
Percentage chance when an innocent bystander is killed.

Evidence

boolean
default:"true"
Enables fingerprint evidence drops when taking the photo of the body.
number
default:"50"
Percentage chance that fingerprint evidence is left behind.

Handler

Config.Handler controls the NPC that hands out contracts and pays them out.
string
default:"\"s_m_m_highsec_01\""
The handler ped model.
vector4
default:"vector4(-436.89, 1059.01, 326.68, 186.68)"
Where the handler stands.
string
default:"\"PROP_HUMAN_BUM_SHOPPING_CART\""
Idle scenario. You can use Animation = {Dict = "", Anim = "", Flag = 1} instead.
table
Target / drawtext settings for talking to the handler.
table | false
Envelope handover when the player gets paid. Set to false to disable.
table
Blip shown to the contract owner once the proof is taken, to return to the handler.

Contract

boolean
default:"true"
When true, the contract fails if someone else kills the target. Accidents count if the owner is within AccidentRange.
number
default:"75.0"
(OwnerMustKill only) The owner has to be this close to the body when the target dies without a killer (fall, drowning, etc.).
boolean
default:"true"
When true, the player has to take a photo of the body before returning to the handler. When false, the kill is enough.
number
default:"20"
Minutes to get back to the handler after the proof (or the kill when ProofRequired = false).
number
default:"60"
Seconds before the contract peds are deleted once the contract is over.
table
The handler only knows the area the target hangs around in, not the exact spot.
number
default:"70.0"
Maximum distance between the target and the center of the area blip (kept under 80% of the radius). Locations with a fixed Area ignore this and AreaBlip.Radius.
table
Blip placed on the target’s body once it’s down.
number
default:"15.0"
The target gets spooked by a drawn gun within this distance (in line of sight), or suppressed gunfire within this distance. Any damage also spooks the target. Melee weapons and holstered guns never do.
number
default:"60.0"
The target gets spooked by unsuppressed gunfire within this distance.
number
default:"250.0"
The contract fails if a spooked target gets this far from where they were standing.
number
default:"25"
Percentage taken off the payout for every innocent bystander (decoy) killed.
number
default:"3"
The handler cancels the contract after this many innocents are killed. Set to 0 to disable.
number
default:"0"
Percentage taken off when the client asked for a specific weapon class and the player used something else. Set to 0 to disable.

Proof

string | false
default:"false"
Item required to take the photo, e.g. "phone". false = no item needed.
table
The player holding their phone up while the camera is open.
number
default:"8.0"
The body has to be closer than this to the camera for the photo to count.
number
default:"0.3"
How far from the center of the screen the body can be (0.5 = anywhere on screen). Shown in game by the corner brackets of the viewfinder.
table
default:"{Default = 50.0, Min = 15.0, Max = 70.0}"
Camera field of view. Players zoom in and out with the mouse wheel between Min and Max.
table
Target / drawtext settings for the body.

Payout

string
default:"\"cash\""
"cash" pays money to Account. "item" gives Item instead (e.g. marked bills or black money).
string
default:"\"cash\""
"cash" or "bank". Used when Type = "cash".
string
default:"\"black_money\""
Item given when Type = "item".

Bonuses

Bonuses are a percentage of the base pay. The killing blow is read on the server (cause of death and the game’s damage event), so the client never tells the server how the target died. On contracts with more than one target, each bonus is worked out per target and averaged, so a headshot on one of two targets gives half the headshot bonus.
table

Weapon Requests

Sometimes the client wants the job done a certain way. Each tier has a RequestChance of a request being added to the contract. Doing it the client’s way adds that class’s Bonus to the payout. On multi-target contracts the request applies to every target.
table
Weapons are the cause of death the game reports, so "accident" covers getting run over, falling, drowning, and burning.

Targets

table
The target’s look and the description the handler gives. Each profile has a Model, a Description, and Decoys: similar looking models that spawn around the target so the player has to identify the right one. A profile can also use Variants with several model / description / decoy sets.
Included profiles: snitch, redneck, dealer, accountant, biker, boss.
table
Generic bystander models mixed in with the profile’s decoys.

Tiers

Config.Tiers defines the contract difficulty levels. Each contract rolls a tier based on Chance. Guards and lookouts are per target. Pay and TimeLimit are for the whole contract.
table

Bodyguards

table
Applied to every bodyguard once hostile.

Lookouts

Lookouts stand near the target. If one spots the player, they get on the phone, and after CallTime seconds the target is warned (spooked). Take the lookout out before the call goes through to stop it.
table

Revenge

A target who saw the player and got away can send people after them. Revenge only rolls when the contract fails for one of the Reasons while a target is still alive and spooked (or has escaped). The chance and number of hunters come from the tier’s Revenge setting. After Delay minutes, a car with the hunters spawns SpawnDistance away from the player and drives to them. The player is warned, and the hunters give up after Duration minutes, or when the player dies.
table

Locations

Config.Locations defines where targets can spawn. Eight locations are included: Legion Square, Sandy Shores, Mirror Park, Del Perro Pier, Vespucci Beach, Grove Street, Paleto Bay, and Vinewood Boulevard.
table
The number of decoys spawned is capped at the number of DecoySpawns in the location. Give each location at least as many DecoySpawns as the highest tier’s Decoys count (6 by default) to get the full amount. Decoys spawn once per location, so two targets in the same location share them.A multi-target contract needs free locations (or free TargetSpawns) for every target. If there aren’t enough, the contract is offered with fewer targets.

Logs

Configured in config/logs.lua.
boolean
default:"false"
Enables or disables the logging system.
string
default:"\"\""
Your Discord webhook URL, or your Fivemerr/Fivemanage API key.
string
default:"\"\""
The Fivemanage dataset to log activity to. Only used with Fivemanage.