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.Do I need a map?
Do I need a map?
Is projectx-ui required?
Is projectx-ui required?
projectx-ui is only used for the fixer’s cinematic dialog when Config.Dialog = "projectx". If it isn’t started, the fixer falls back to an ox_lib alert dialog automatically.How does a robbery work?
How does a robbery work?
Buy a contract
Config.Fixer.Price). The fixer marks the contract containers on your map (only you see the blips) and hands over a container_pass.Check in at the gate
Open the containers
x_grinder, or bypass electronic locks with an x_device. Each cut has a small chance (DispatchChanceOnCut) of alerting the police.Loot the crates
weapon_crowbar, gun crates need a bag.Config.Fixer.ExpireTime minutes if not every container was robbed.Loud approachWalk into a yard’s detection zone without a contract. The alarm goes off, police are alerted, and the security guards turn hostile. A random set of containers (ActiveContainers) can then be robbed. With AlarmOnContainer = true, the robbery starts quietly and the alarm only triggers once someone starts robbing a container.What are decoy containers?
What are decoy containers?
Config.Decoy.DispatchDelay seconds. No alarm plays and no guards spawn. Configure or disable them in Config.Decoy.What determines the loot in a container?
What determines the loot in a container?
Config.LockTypes. The lock’s Tier decides which crate layouts from Config.CrateLayouts can spawn behind it. Padlocks (tier 1) lead to wooden crates, reinforced padlocks (tier 2) to gun, electronics, and cash crates, and electronic locks (tier 3) to the best gun, explosive, and cash layouts.How do I change which minigames are used?
How do I change which minigames are used?
opensource/client/client.lua and find the projectx-containerrobbery:client:Minigames callback. Each lock and crate step has its own elseif block where you can swap the minigame export for any resource you prefer. You can also return true inside any block to skip that minigame entirely.Locks use the built-in grinder and bypass UIs by default. Set Config.Cutter.Enabled = false to use the lock minigames from the callback instead. See the Open Source page for details.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. This applies to both the fixer contract and the loud approach.How do I stop police from setting off the alarm?
How do I stop police from setting off the alarm?
IgnoredJobs. Players with these jobs never trigger a detection zone.How do I disable one of the approaches?
How do I disable one of the approaches?
DisableFixerContracts = true to remove the fixer, so robberies can only start through a detection zone. Set DisableLoudApproach = true so walking into a detection zone no longer starts a robbery.How do I make the fixer charge an item instead of cash?
How do I make the fixer charge an item instead of cash?
Config.Fixer.Price.Type to "item" and choose the Item and Amount:How do I limit the fixer to certain yards?
How do I limit the fixer to certain yards?
Config.Fixer.Locations. Leave it empty to use all of them.How do I gate robberies behind an XP or level requirement?
How do I gate robberies 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 yard?
How do I add a new yard?
Config.Locations, rename the key, and update the Alarm, Zones, Containers, GateGuard, and SecurityGuards. Enable debug to see the zones in game while placing them. Keep the GateGuard outside the Detection zone so players can check in without setting off the alarm.Troubleshooting
The script won't start
The script won't start
server.cfg (projectx-bridge, ox_lib, and minigames).Minigames fail immediately
Minigames fail immediately
bl_ui, lightsout) are started and placed outside the robbery script folder. A missing minigame resource prints a warning in the F8 console and counts the step as failed.The guards opened fire during a contract
The guards opened fire during a contract
container_pass to the guard at the yard entrance first. Failing an electronic lock hack also goes loud when FailGoesLoud = true.The fixer kept my pass card
The fixer kept my pass card
Loot items are missing
Loot items are missing
Config.CrateTypes exists in your inventory. Replace ammo-9 with your inventory’s 9mm ammo item if you don’t use ox_inventory.