r_props_police Installation
Install Police Props: add the resource, paste the items, copy the inventory images and add the emotes.
Prerequisites
Police Props has no dependencies.
- Optional: ox_inventory, qbx_core, qb-core or es_extended for the items
- Optional: rpemotes or dpemotes for the emotes
Installation Steps
Download & Extract
- Buy Police Props on r-scripts.net
- Download it from your Cfx.re Portal
- Extract the folder into your server's
resourcesdirectory - Keep the folder name
r_props_police
r_props_police
assets
images33 inventory images
- ox_inventory_items.luaox_inventory and Qbox items
- qb_items.luaQBCore items
- esx_items.sqlESX items
- rpemotes.luaemote lines
- attach_offsets.luahand offsets for your own scripts
serverversion check, no need to touch
streamthe models, no need to touch
- fxmanifest.lua
Add to server.cfg
ensure r_props_policeItems
Paste the file for your inventory:
Paste assets/ox_inventory_items.lua into ox_inventory/data/items.lua.
radio, handcuffs and filled_evidence_bag are common names that other scripts use too. If your server
already has one of them, keep your own line and skip ours.
Then copy assets/images/*.png into your inventory's image folder.
Emotes (optional)
Paste assets/rpemotes.lua into the PropEmotes table of rpemotes
(client/AnimationList.lua). dpemotes uses the same format. Then try /e radargun or /e stoppaddle.
Restart
Restart your server, or run this in the server console:
Use the props in your own scripts
Every prop works like any other prop. Spawn it by its model name, or place it with a prop placement script:
local model = `r_police_marker_1`
RequestModel(model)
while not HasModelLoaded(model) do Wait(0) end
local prop = CreateObject(model, coords.x, coords.y, coords.z, true, true, false)
PlaceObjectOnGroundProperly(prop)
FreezeEntityPosition(prop, true)- Ground props stand on their origin. Props with a front (markers, barricade, paddles, boards) face -Y.
- Freeze placed props: they are static props and fall through the ground as physics objects.
r_police_chalk_outlineis a flat decal: place it right on the ground. It has no collision.- The wall props (
r_police_height_chart,r_police_cold_case_board) have their origin at the bottom of the back: put them against a wall.
Hand props
assets/attach_offsets.lua has a tested offset for every holdable model:
local offsets = {
r_police_radar_gun = { bone = 57005, pos = vec3(0.159, -0.063, -0.039), rot = vec3(-77.1, 84.2, 18.7), dict = 'weapons@pistol@', clip = 'aim_med_loop' },
}
local o = offsets.r_police_radar_gun
AttachEntityToEntity(prop, ped, GetPedBoneIndex(ped, o.bone), o.pos.x, o.pos.y, o.pos.z, o.rot.x, o.rot.y, o.rot.z, true, true, false, true, 1, true)