General Questions
What frameworks are supported?
What frameworks are supported?
Framework to 'auto' in the bridge config and it will detect your framework automatically.Custom frameworks and any other framework work as well if you add the framework exports in the bridge’s open source files. Set Framework to 'custom' and implement the adapter functions in projectx-bridge. See the Bridge Overview.Do I need the Project X Bridge?
Do I need the Project X Bridge?
projectx-bridge asset is automatically delivered to your CFX portal.Is projectx-ui required?
Is projectx-ui required?
projectx-ui adds the handler’s cinematic dialog and the on-screen task tracker. Without it, the handler uses an ox_lib alert dialog and no task tracker is shown.How does a contract work?
How does a contract work?
Talk to the handler
Find the target
Take them out
Take a photo of the body
ProofRequired = true, photograph each body before the time limit runs out. The phone camera opens: zoom with the mouse wheel, get the body inside the corner brackets, and take the picture. The body has to be within Proof.MaxDistance and nothing can be in the way.Return to the handler
ReturnTime minutes to get paid, with bonuses and penalties applied.What spooks the target?
What spooks the target?
SpookDistance (in line of sight), unsuppressed gunfire within ShotSpookDistance, suppressed gunfire within SpookDistance, or any damage. Melee weapons and holstered guns never spook the target. If a spooked target gets EscapeDistance away from their starting point, the contract fails.A lookout who spots the player also warns the target. See below.What do lookouts do?
What do lookouts do?
Lookouts in the tier). A lookout spots an armed player in line of sight within SpotDistance, or any player within DetectDistance. They then get on the phone, and after CallTime seconds (4 by default) the target is spooked. Take the lookout out during the call to stop the warning.What is revenge?
What is revenge?
Config.Revenge.Duration minutes. Set Config.Revenge.Reward to pay players for taking them all out, or Enabled = false to turn revenge off.How are the bonuses calculated?
How are the bonuses calculated?
Config.Bonuses.MaxTotal (200% by default):- Headshot — 15%
- Suppressed — 15%
- Long range (150m+) — 20%
- Quick work (within 33% of the time limit) — 20%
- Ghost (target never spooked, no innocents or guards killed) — 25%
- Client’s request — the weapon class bonus (10% to 75%)
InnocentPenalty % (25% by default) off the payout. The kill is read on the server from the cause of death and the game’s damage events, so it can’t be faked from the client.Why did my contract fail?
Why did my contract fail?
- The time limit runs out before every kill (and the proofs)
- You don’t return to the handler within
ReturnTime - A spooked target escapes
- The target ped disappears (e.g. deleted by another script)
- Someone else kills the target (with
OwnerMustKill = true) - You kill
InnocentFailAtinnocents (3 by default)
When are police alerted?
When are police alerted?
Dispatch.Delay seconds after a death, with a chance based on how it happened: 60% for a normal kill, 15% if suppressed, 5% for an accident, and 100% when an innocent is killed.Configuration Questions
How do I require a minimum number of police?
How do I require a minimum number of police?
MinimumPolice to the number you want in config/config.lua, and make sure the correct jobs are listed in PoliceJobs.How do I pay contracts in black money or marked bills?
How do I pay contracts in black money or marked bills?
Config.Payout.Type to "item" and choose the item:PayContract in opensource/server/server.lua.How do I require a phone for the photo?
How do I require a phone for the photo?
Config.Proof.Item to your phone item, e.g. "phone". To skip the photo entirely, set Config.Contract.ProofRequired = false.How do I let anyone finish the job?
How do I let anyone finish the job?
Config.Contract.OwnerMustKill = false. The contract then no longer fails when someone else kills the target.How do I gate contracts behind an XP or level requirement?
How do I gate contracts behind an XP or level requirement?
SkillSystem to true and configure MinimumLevel in config/config.lua. You also need a compatible XP system integrated in the bridge config (XPSystem).Supported systems include pickle_xp, sd-levels, cw-rep, and OT_skills.How do I add a new location?
How do I add a new location?
Config.Locations, rename the key, and update the Label, Area, TargetSpawns, and DecoySpawns. Mark indoor target spawns with Inside = true so the client never requests a sniper kill there.How do I give a contract more than one target?
How do I give a contract more than one target?
Targets in the tier to a number, or to {min = 1, max = 3} for a random count. Each target gets their own location and area blip when one is free. Raise Pay and TimeLimit to match, since both are for the whole contract.How do I limit a tier to certain locations?
How do I limit a tier to certain locations?
Locations list to the tier, e.g. Locations = {"legion", "vinewood"}. Without it, the tier uses every location.How do I turn off lookouts or revenge?
How do I turn off lookouts or revenge?
Lookouts = 0 in each tier to remove lookouts. Set Config.Revenge.Enabled = false to turn revenge off, or set a tier’s Revenge.Chance to 0.How do I add a new target type?
How do I add a new target type?
Config.TargetProfiles with a Model, Description, and look-alike Decoys, then add its key to the Profiles list of the tiers that should use it.Troubleshooting
The script won't start
The script won't start
projectx-bridge and ox_lib are started before the script in your server.cfg, and that OneSync is enabled.The handler says there's no work
The handler says there's no work
MaxActiveContracts has been reached, or every location is already in use. Each location can only host one contract at a time, and a multi-target contract can take up several. Add more locations or raise MaxActiveContracts.The handler won't talk to me
The handler won't talk to me
BlacklistedJobs, that you aren’t on a player cooldown (Cooldown.PlayerCooldown), and that you haven’t hit the restart limits.The dialog or task tracker doesn't show
The dialog or task tracker doesn't show
projectx-ui started before the script. Without it, the handler falls back to the ox_lib dialog.