mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-28 17:01:16 +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
|
||||
|
||||
if IsPedInAnyVehicle(ped) then
|
||||
SetEntityAsMissionEntity(veh, true, true)
|
||||
DeleteVehicle(veh)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user