Advanced Search
Search Results
53 total results found
State Bags
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
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
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
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
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
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
Server exports exports["sf-policeradar"]:GiveRadarToVehicle(vehicle) exports["sf-policeradar"]:RemoveRadarFromVehicle(vehicle) exports["sf-policeradar"]:GiveScramblerToVehicle(vehicle) exports["sf-policeradar"]:RemoveScrambler...
ESX Installation
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
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
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
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
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
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
/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
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
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
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
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
Available state bags Name Result Player(serverId).state.InTrunk vehicleNetId when player is inside / nil if player is not inside trunk
Wasabi installation
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...