#Better Police Holster
24 messages · Page 1 of 1 (latest)
(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)
Is there a benefit to this rather the included holster in smallresources?
simply that it uses job roles instead of clothing numbers so you don't have to bother changing the configuration all the time if you add/remove clothing.
So just drag and drop into the holsters lua of small resources?
Copy/paste into holsters.lua
Should be 136 lines in that code I sent
So replace the whole of holsters.lua
with what I sent
I had a look in the code how does it get player job?
2 seconds
if QBCore.Functions.GetPlayerData().job.name == "police" or QBCore.Functions.GetPlayerData().job.name == "ambulance" then
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
haha was gonna say
Better Police Holster
hey man. so none work properly