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