I try to use the same MDT for the 2 jobs, what should I add in the code?
Thanksss Help Pls
Just copy xPlayer.job.name == ‘Police’ and re paste it and change police to sheriff. Put a “or” between the two xPlayer.job.name. This isn’t the same as above but you should get the idea.
if Player.PlayerData.job.name == “police” or Player.PlayerData.job.name == “sheriff” then
your code is xPlayer.job.name, so it should be:
if xPlayer.job.name == ‘police’ or xPlayer.job.name == ‘bcso’ then
I’m on QBCore so the code I used for an example will not work for esx.
thank you so much
what code you use i use qb also
should be Player.PlayerData.job.name
if Player.PlayerData.job.name == “police” or Player.PlayerData.job.name == “sheriff” then
this for QB?
yes, its what I use.