Nordi Scripts
This commit is contained in:
parent
1fe44ee3bb
commit
9264a37109
37 changed files with 2571 additions and 0 deletions
|
@ -0,0 +1,15 @@
|
|||
if Config.framework == 'esx' then
|
||||
lib.callback.register('mt_dealerships:server:getPlayerJobESX', function(source)
|
||||
local src = source
|
||||
local Player = Config.core.GetPlayerFromId(src)
|
||||
if not Player then return end
|
||||
return Player.getJob().name
|
||||
end)
|
||||
|
||||
lib.callback.register('mt_dealerships:server:getPlayerJobIsBossESX', function(source)
|
||||
local src = source
|
||||
local Player = Config.core.GetPlayerFromId(src)
|
||||
if not Player then return end
|
||||
return (Player.getJob().grade_name == 'boss')
|
||||
end)
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue