> For the complete documentation index, see [llms.txt](https://docs.zobyeteam.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zobyeteam.com/resource/zobyeteam_garage/connection/customvehicle.md).

# Customize vehicle

เมื่อการปรับแต่งรถเสร็จสิ้น และมีการเปลี่ยนแปลงรายละเอียดที่ตัวรถ ไม่ว่าจะเป็น สี ล้อ หรือ อื่นๆ จะต้องมีการใช้ Function พิเศษ เพื่อให้ *ZOBYETEAM\_GARAGE* รับรู้ว่ามีการเปลี่ยนแปลงรายละเอียดที่ตัวรถ ดังตัวอย่าง \
บรรทัดที่ 6

{% code title="esx\_lscustom (client)" lineNumbers="true" %}

```lua
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)
```

{% endcode %}

สำหรับ Function "saveProps" จะไม่มีการรับค่าใดๆ สำหรับการเรียกใช้จากทรัพยากรอื่นๆสามารถ\
ทำได้ดังตัวอย่าง:

```lua
exports['zobyeteam_garage']:saveProps()
```
