forked from Simnation/Main
neuer npc händler
This commit is contained in:
parent
82489d6d85
commit
b858c00883
26 changed files with 0 additions and 0 deletions
15
resources/[carscripts]/mt_dealerships/server/callbacks.lua
Normal file
15
resources/[carscripts]/mt_dealerships/server/callbacks.lua
Normal file
|
@ -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