mirror of
https://github.com/jimathy/jim-consumables.git
synced 2026-08-18 23:16:03 +01:00
Try to fix props affecting vehicles
This commit is contained in:
@@ -20,15 +20,15 @@ function unloadPtfxDict(dict) if Config.Debug then print("^5Debug^7: ^2Removing
|
|||||||
function destroyProp(entity)
|
function destroyProp(entity)
|
||||||
if Config.Debug then print("^5Debug^7: ^2Destroying Prop^7: '^6"..entity.."^7'") end
|
if Config.Debug then print("^5Debug^7: ^2Destroying Prop^7: '^6"..entity.."^7'") end
|
||||||
SetEntityAsMissionEntity(entity) Wait(5)
|
SetEntityAsMissionEntity(entity) Wait(5)
|
||||||
DetachEntity(entity, true, true) Wait(5)
|
--DetachEntity(entity, true, true) Wait(5)
|
||||||
DeleteObject(entity)
|
DeleteObject(entity)
|
||||||
end
|
end
|
||||||
|
|
||||||
function makeProp(data, freeze, synced)
|
function makeProp(data, freeze, synced)
|
||||||
loadModel(data.prop)
|
loadModel(data.prop)
|
||||||
local prop = CreateObject(data.prop, data.coords.x, data.coords.y, data.coords.z-1.03, synced or false, synced or false, false)
|
local prop = CreateObject(data.prop, 0.0, 0.0, 0.0, synced or false, synced or false, false)
|
||||||
SetEntityHeading(prop, data.coords.w+180.0)
|
SetEntityHeading(prop, data.coords.w+180.0)
|
||||||
FreezeEntityPosition(prop, freeze or false)
|
--FreezeEntityPosition(prop, freeze or false)
|
||||||
SetEntityCompletelyDisableCollision(prop, true, false)
|
SetEntityCompletelyDisableCollision(prop, true, false)
|
||||||
DisableCamCollisionForEntity(prop)
|
DisableCamCollisionForEntity(prop)
|
||||||
DisableCamCollisionForObject(prop)
|
DisableCamCollisionForObject(prop)
|
||||||
|
|||||||
Reference in New Issue
Block a user