Customize vehicle
ในตัวอย่างนี้จะใช้ร้านปรับแต่งรถของ esx_lscustom เป็นหลัก
RegisterNetEvent('esx_lscustom:installMod')
AddEventHandler('esx_lscustom:installMod', function()
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
myCar = ESX.Game.GetVehicleProperties(vehicle)
TriggerServerEvent('esx_lscustom:refreshOwnedVehicle', myCar)
exports['zobyeteam_garage']:saveProps()
end)exports['zobyeteam_garage']:saveProps()Last updated