#Better Police Holster

24 messages · Page 1 of 1 (latest)

low prairie
#

(Instead of going off of clothing numbers it goes off of the player's job role to prevent some bugs I have encountered with the previous one)

#

(Enabled for Police and Ambulance jobs)

white grail
#

Is there a benefit to this rather the included holster in smallresources?

low prairie
languid knot
#

So just drag and drop into the holsters lua of small resources?

low prairie
#

Should be 136 lines in that code I sent

#

So replace the whole of holsters.lua

#

with what I sent

languid knot
#

I had a look in the code how does it get player job?

low prairie
#

2 seconds

#
if QBCore.Functions.GetPlayerData().job.name == "police" or QBCore.Functions.GetPlayerData().job.name == "ambulance" then
languid knot
#

Awesome

#

Thanks mate

low prairie
#

Course bro, have a good one

#

Also if people wanted to add more jobs then simply add another one like this:

if QBCore.Functions.GetPlayerData().job.name == "police" or QBCore.Functions.GetPlayerData().job.name == "ambulance" or QBCore.Functions.GetPlayerData().job.name == "otherjob" then
#

Sorry I'm an idiot, kind of left out a lot of stuff...

#

Use this instead:

#

@languid knot sorry about that

languid knot
#

haha was gonna say

low prairie
#

Better Police Holster

languid knot