📜  Fivem esx 脚本 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:54.533000             🧑  作者: Mango

代码示例1
// Initializing ESX and PlayerData
ESX = nil
playerData = nil
Citizen.CreateThread(function()
    while ESX == nil do
        TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
        Citizen.Wait(0)
    end
    playerData = ESX.GetPlayerData()
end)