Vehicle flipover script for QBCore and ESX
- ox_lib
{
type = "client",
event = "nc_carflip:flipcar",
icon = "fas fa-car",
label = "Flip Vehicle",
},
{
name = 'ox_target:flipcar',
icon = 'fa-solid fa-car-flip',
event = 'nc_carflip:flipcar',
label = "Flip car",
offset = vec3(0.5, 0, 0.5),
distance = 2,
canInteract = function(entity, distance, coords, name)
return canInteractWithDoor(entity, coords, 5, true)
end,
onSelect = function(data)
TriggerEvent('nc_carflip:flipcar')
end
},