ESX = exports["es_extended"]:getSharedObject() ESX.RegisterServerCallback('esx:getPlayerData', function(source, cb) { local xPlayer = ESX.GetPlayerFromId(source); cb(xPlayer); }); RegisterNetEvent('esx:savePlayerData'); AddEventHandler('esx:savePlayerData', function() { local xPlayer = ESX.GetPlayerFromId(source); xPlayer.save(); }); ESX.RegisterUsableItem('bread', function(source) { local xPlayer = ESX.GetPlayerFromId(source); xPlayer.removeInventoryItem('bread', 1); TriggerClientEvent('esx_status:add', source, 'hunger', 200000); TriggerClientEvent('esx:showNotification', source, 'You have used ~y~bread~s~'); }); RegisterCommand('car', function(source, args, rawCommand) { local xPlayer = ESX.GetPlayerFromId(source); local vehicleName = args[1] or 'adder'; TriggerClientEvent('esx:spawnVehicle', source, vehicleName); }, false);

正在跳转...

温馨提示,5秒后将自动跳转到月光插件网。