Open kopalov opened 9 years ago
Are you freaking kidding me. This will be so great. I can write a script that allows us to reuse this code for all the objects inside the interiors. Would save us a lot of time for in the future. But before I do that let's first test to see if we can spawn a item ;-)
local object = CreateObject(modelHash, getHaySubCoord(hay.x, hay.y, hay.z, x, y, z), true, true, false) SetEntityDynamic(object, false) --SetEntityInvincible(object, true) SetEntityRecordsCollisions(object, false) SetEntityCanBeDamaged(object, false) SetEntityHasGravity(object, false) FreezeEntityPosition(object, true)