FiveM_CarUI
FiveM CarUI is a public released UI to improve the UI for the ESX Framework. You may edit & change the UI to your liking.
CarUI was based on esx_customui and speedometer code.
Screenshot preview
Requirements
- es_extended
- locksystem
- wk_vehdamage
- any seatbelts script
Download & Installation
- Download the .zip.
- Extract the .zip or Open the .zip.
- Place
carui
in your ESX Directory - Add
start carui
to your server.cfg
How to make icons work
[LOCK]
locksystem\client\VehicleManager_CL.lua
rTable.lock = function()
lockStatus = self.lockStatus
if(lockStatus <= 2)then
self.lockStatus = 4
SetVehicleDoorsLocked(self.id, self.lockStatus)
SetVehicleDoorsLockedForAllPlayers(self.id, 1)
TriggerEvent("esx_customui:lock", self.lockStatus)
TriggerServerEvent("InteractSound_SV:PlayWithinDistance", 10, "lock", 1.0)
elseif(lockStatus > 2)then
self.lockStatus = 1
SetVehicleDoorsLocked(self.id, self.lockStatus)
SetVehicleDoorsLockedForAllPlayers(self.id, false)
TriggerEvent("esx_customui:lock", self.lockStatus)
TriggerServerEvent("InteractSound_SV:PlayWithinDistance", 10, "unlock", 1.0)
end
end
[BELTS]
in belts script\client.lua
if beltOn then
Wait(0)
local belt = 1
TriggerEvent('esx_carui:belts', belt)
else
Wait(0)
local belt = 0
TriggerEvent('esx_carui:belts', belt)
end
end
[ENGINE]
resources\wk_vehdamage\cl_vehicle.lua
if ( GetPedInVehicleSeat( vehicle, -1 ) == ped ) then
local damage = GetVehicleEngineHealth( vehicle )
TriggerEvent('esx_carui:vd', damage)
if ( damage < levelOfDamageToKillThisBitch and IsValidVehicle( vehicle ) ) then
SetVehicleEngineHealth( vehicle, 300 )
SetVehicleEngineOn( vehicle, false, true )
My Discord: Zajacc22#7732