Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

41 total results found

State Bags

Newspapers

Available state bags Name Result Player(serverId).state.InNewspaperJob true when player is in job Player(serverId).state.DeliveredNewspaper true when player has revenue to collect from job

ox-inventory Installation

Newspapers

data/weapons.lua Add the following code snippet to the weapons file: ox_inventory/data/weapons.lua:705 ['WEAPON_TEARGAS'] = { label = 'Tear Gas', weight = 600, throwable = true, }, -- Lines below ['WEAPON_NEWSPAPER'] = { label =...

qb-inventory installation

Newspapers

qb-core Add ['weapon_newspaper'] = { ['name'] = 'weapon_newspaper', ['label'] = 'Newspaper', ['weight'] = 1000, ['type'] = 'weapon', ['ammotype'] = nil, ['image'] = 'weapon_newspaper.png', ['unique'] = true, ['useable'...

qs-inventory installation

Newspapers

UseWeapon.lua Add weaponName == "weapon_newspaper" or in elseif section in line 17, under Config.InventoryPrefix..':client:UseWeapon' event handler. Example client/custom/misc/UseWeapon.lua:17 elseif weaponName == "weapon_newspaper" or weaponName == ...

Installation

Police Radar & Scrambler

Download policeradar_prop and sf-policeradar and place the unpacked folders into your server resources directory, add this to your server.cfg and restart the server: ensure policeradar_prop ensure sf-policeradar If you are using QBCore or ESX ch...

Garage integration

Police Radar & Scrambler

ESX in es_extended/client/functions.lua add this part to your ESX.Game.GetVehicleProperties function es_extended/client/functions.lua:747 modTank = GetVehicleMod(vehicle, 45), modWindows = GetVehicleMod(vehicle, 46), modLivery = GetVehic...

Exports and API integration

Police Radar & Scrambler

Server exports exports["sf-policeradar"]:GiveRadarToVehicle(vehicle) exports["sf-policeradar"]:RemoveRadarFromVehicle(vehicle) exports["sf-policeradar"]:GiveScramblerToVehicle(vehicle) exports["sf-policeradar"]:RemoveScrambler...

ESX Installation

Police Speed Gun

Open the config.weapons.lua file located in your es_extended folder. Add the following code snippet to the weapons file: es_extended/config.weapons.lua:256 {name = 'WEAPON_STUNGUN', label = TranslateCap('weapon_stungun'), tints = Config.De...

ox-inventory Installation

Police Speed Gun

Open the data/weapons.lua file located in your ox_inventory folder. Add the following code snippet to the weapons file: ox_inventory/data/weapons.lua:705 ['WEAPON_TEARGAS'] = { label = 'Tear Gas', weight = 600, throwable = t...

qb-core Installation

Police Speed Gun

Open the shared/items.lua file located in your qb-core folder. Add the following code snippet to the items file: qb-core/shared/items.lua:51 ['weapon_pistolxm3'] = {['name'] = 'weapon_pistolxm3', ['label'] =...

ox-inventory Installation

Smokegrenade

data/weapons.lua Add the following code snippet to the weapons file: ox_inventory/data/weapons.lua:705 ['WEAPON_TEARGAS'] = { label = 'Tear Gas', weight = 600, throwable = true, }, -- Lines below ['WEAPON_SMOK2GRENADE'] = { labe...

qb-inventory installation

Smokegrenade

I can't equip my Smokegrenade / I can't throw it / It does not explode Ensure that you have configured qb-inventory correctly. Example configuration qb-core Add ['weapon_smok2grenade'] = { ['name'] = 'weapon_smok2grenade', ['label'] = 'Smokegren...

qs-inventory installation

Smokegrenade

QS-INVENTORY IS NO LONGER SUPPORTED. WE DO NOT PROVIDE SUPPORT FOR IT ANYMORE. I can't equip my Smokegrenade / I can't throw it / It does not explode Ensure that you have configured qs-inventory correctly. Example configuration UseWeapon.lua Add weaponNam...

Commands

Trunks

/trunk_leave This commands gives option for player to leave trunk if for some reason they cannot use target. /trunk_create If DevMode in config is enabled, you can use editor to add or edit trunk to a vehicle of your choice.

Configuration

Trunks

Explaining every config value of sf-trunks Remember to configure the script before usage. DevMode DevMode enables command /trunk_create to be used by anyone on the server. This command gives user an ability to use trunk editor, to make any chosen vehicle ta...

ESX installation

Trunks

esx_policejob has to be edited before using sf-trunks. Without it animations will be bugged. Remember! Create a backup before editing files of your existing resources! esx_policejob You have to replace handcuff thread in line 1137 in client/main.lua with th...

Events

Trunks

sf-trunks:isUsingCamera This is prepared if you need to hook up your anticheat or something. state - true if camera is used, false if it is not used. It also indicates if player is in the trunk. AddEventHandler("sf-trunks:isUsingCamera", function(state) ...

qb-core installation

Trunks

qb-ambulancejob and qb-policejob has to be edited before using sf-trunks. Without it animations will be bugged. Remember! Create a backup before editing files of your existing resources! qb-ambulancejob You have to remove everything under line 123 in client...

State Bags

Trunks

Available state bags Name Result Player(serverId).state.InTrunk vehicleNetId when player is inside / nil if player is not inside trunk

Wasabi installation

Trunks

wasabi_ambulance and wasabi_police has to be edited before using sf-trunks. Without it animations will be bugged. Remember! Create a backup before editing files of your existing resources! wasabi_ambulance You have to add this code at the end of client/cl_c...