1
0
Fork 0
forked from Simnation/Main
Main/resources/[standalone]/lg_documents/Server/framework/Standalone.lua
2025-06-07 08:51:21 +02:00

39 lines
No EOL
1,002 B
Lua

if use_framework == 'Standalone' then
-- This function will return the player's identifier
function getIdentifier(source)
-- local xPlayer = ESX.GetPlayerFromId(source)
-- if xPlayer then
-- local identifier = xPlayer.getIdentifier()
-- return ""..identifier
-- end
end
-- This function will return the player's name
function getName(source)
-- local xPlayer = ESX.GetPlayerFromId(source)
-- local name = xPlayer.getName()
-- return name
end
function getJob(source)
-- local xPlayer = ESX.GetPlayerFromId(source)
-- local job = xPlayer.getJob().name
-- return job
end
function getGrade(source)
-- local xPlayer = ESX.GetPlayerFromId(source)
-- local grade = xPlayer.getJob().grade
-- return grade
end
function showNotification(source, message)
-- TriggerClientEvent('esx:showNotification', source, message)
TriggerClientEvent('chat:addMessage', source, { args = { message }})
end
end