forked from Simnation/Main
ed
This commit is contained in:
parent
9e03784b6e
commit
53578d1af6
32 changed files with 1857 additions and 0 deletions
23
resources/[tools]/um-idcard/main/server.lua
Normal file
23
resources/[tools]/um-idcard/main/server.lua
Normal file
|
@ -0,0 +1,23 @@
|
|||
RegisterNetEvent('um-idcard:server:sendData', function(src,metadata)
|
||||
if metadata.mugShot ~= 'none' then
|
||||
lib.callback('um-idcard:client:callBack:getClosestPlayer', src, function(player)
|
||||
if player ~= 0 then
|
||||
TriggerClientEvent('um-idcard:client:notifyOx', src, {
|
||||
title = 'You showed your idcard',
|
||||
desc = 'You are showing your ID Card to the closest player',
|
||||
icon = 'id-card',
|
||||
iconColor = 'green'
|
||||
})
|
||||
src = player
|
||||
end
|
||||
TriggerClientEvent('um-idcard:client:sendData', src, metadata)
|
||||
end)
|
||||
TriggerClientEvent('um-idcard:client:startAnim', src, metadata.cardtype)
|
||||
else
|
||||
NewMetaDataLicense(src,metadata.cardtype)
|
||||
end
|
||||
end)
|
||||
|
||||
for k,_ in pairs(Config.Licenses) do
|
||||
CreateRegisterItem(k)
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue