mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 01:08:57 +00:00
sets veh as mission entity to use delete native
This commit is contained in:
@@ -129,6 +129,7 @@ RegisterNetEvent('QBCore:Command:SpawnVehicle', function(vehName)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if IsPedInAnyVehicle(ped) then
|
if IsPedInAnyVehicle(ped) then
|
||||||
|
SetEntityAsMissionEntity(veh, true, true)
|
||||||
DeleteVehicle(veh)
|
DeleteVehicle(veh)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user