mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-19 06:46:04 +01:00
check for destroyProp if received any info
This commit is contained in:
@@ -154,6 +154,7 @@ function lookEnt(entity) local ped = PlayerPedId()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function destroyProp(entity)
|
function destroyProp(entity)
|
||||||
|
if entity then
|
||||||
if Config.System.Debug then print("^6Bridge^7: ^2Destroying Prop^7: '^6"..entity.."^7'") end
|
if Config.System.Debug then print("^6Bridge^7: ^2Destroying Prop^7: '^6"..entity.."^7'") end
|
||||||
if IsEntityAttachedToEntity(entity, PlayerPedId()) then
|
if IsEntityAttachedToEntity(entity, PlayerPedId()) then
|
||||||
SetEntityAsMissionEntity(entity)
|
SetEntityAsMissionEntity(entity)
|
||||||
@@ -161,6 +162,7 @@ function destroyProp(entity)
|
|||||||
end
|
end
|
||||||
DeleteObject(entity)
|
DeleteObject(entity)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function pushVehicle(entity)
|
function pushVehicle(entity)
|
||||||
SetVehicleModKit(entity, 0)
|
SetVehicleModKit(entity, 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user