sets veh as mission entity to use delete native

This commit is contained in:
Mythic
2023-02-01 09:33:57 -08:00
parent 14340bb374
commit 2311af93b4
+1
View File
@@ -129,6 +129,7 @@ RegisterNetEvent('QBCore:Command:SpawnVehicle', function(vehName)
end
if IsPedInAnyVehicle(ped) then
SetEntityAsMissionEntity(veh, true, true)
DeleteVehicle(veh)
end