kopalov / GTAV-SH-Mod

The Savehouse Mod for GTA V
9 stars 4 forks source link

Create, load and unload props without Map Editor. #105

Open kopalov opened 9 years ago

kopalov commented 9 years ago

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)

hennysmafter commented 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 ;-)