Paid Resources🚓 filo_police
Installation
Dependencies, items, jobs, MDT and building stations.
Dependencies
| Resource | Required | Used for |
|---|---|---|
| ox_lib, oxmysql, qbx_core | Yes | Everything |
| ox_inventory, ox_target | Yes | Items, stashes, shops and targets |
| filo_joblib | Yes | Carry, escort, vehicles, cuffs and job GPS (included in the download) |
| qbx_idcard | Yes | ID and licence cards |
| MugShotBase64 | For mugshots | Headshot pictures |
| qbx_management | For boss menus | Boss menu points |
| illenium-appearance | For wardrobes | Wardrobe points |
| sd-phone / sd-tablet | Optional | MDT and the panic call |
| screencapture | Optional | Officer's-view mugshot for Discord or a CDN |
| op-garages | Optional | Impound |
| filo_vehiclekeys | Optional | Keys for garage vehicles |
| sleepless_prompts | Optional | Key prompts for carry and escort |
Setup
Put
filo_police and filo_joblib in your resources folder.Remove what it replaces, or they'll clash:
- Any other police job (for example wasabi_police): a second F6 menu and its own handcuffs.
- um-idcard: qbx_idcard uses the same events and item.
- Hands up in your emotes resource (filo_joblib has
filo_handsup, default X), and rope in your crime scripts.
server.cfg:
ensure ox_lib
ensure oxmysql
ensure qbx_core
ensure ox_inventory
ensure ox_target
ensure MugShotBase64
ensure qbx_idcard
ensure filo_joblib
ensure filo_policeThe database tables are created on the first start.
Add the items below to
ox_inventory/data/items.lua, plus the filo_joblib items.Set up your departments in
Config.departments and register their jobs in qbx_core/shared/jobs.lua. Give the same jobs to filo_joblib (Config.interactions.jobs, Config.cuffs.jobs, Config.gps.jobs).For the MDT, set
Enabled = true in sd-phone/configs/mdt.lua and keep a department for each police job (job = 'police', type = 'leo').Set your server name, logo and colours in
Config.branding, then build your stations in game (below).Items
['wheelclamp'] = {
label = 'Wheel Clamp',
weight = 5000,
stack = true,
client = { export = 'filo_police.wheelclamp' },
},
['breathalyzer'] = {
label = 'Breathalyser',
weight = 300,
stack = false,
client = { export = 'filo_police.breathalyzer' },
},
['drugtest'] = {
label = 'Drug Test',
weight = 50,
stack = true,
client = { export = 'filo_police.drugtest' },
},
-- qbx_idcard cards
['id_card'] = { label = 'ID Card', stack = false },
['driver_license'] = { label = "Driver's License", stack = false },
['weaponlicense'] = { label = 'Firearms License', stack = false },
['police_badge'] = { label = 'Police Badge', weight = 100, stack = false },Build the stations
- Run
/policecreatoras an admin (group.admin). - Pick a type on the left, then New, and set the label, jobs, lowest grade and an optional ped.
- Click Place, aim at the spot and press E. G uses your own position, scroll rotates and X cancels. Garages also need a vehicle spawn.
- Save. The point appears for everyone straight away. Show in world draws every point near you.
Then set each department's settings in /policecreator > Departments.
Mugshot keys
Add these to your server config as needed:
set filo_police_mugshot_webhook "https://discord.com/api/webhooks/..."
set filo_police_qbox_cdn_key "..." # upload = 'qbox'
set filo_police_fivemanage_key "..." # upload = 'fivemanage'
set filo_police_cdn_key "..." # upload = 'custom' (also set cdns.custom.url)With the default headshot.upload = 'sd-phone', the headshot uses the provider set in
sd-phone/configs/photos.lua.