Skip to main content

CREATE_OBJECT

Game.CreateObjectHash0x4DE152A0
Usage
local objectIndex = Game.CreateObject(modelHashKey, x, y, z, registerAsNetworkObject)

Create an object with an offset (from the root the base) at the given coord.

Parameters

  • modelHashKeyintegerint
  • xnumberfloat
  • ynumberfloat
  • znumberfloat
  • registerAsNetworkObjectbooleanbool

Returns

  • objectIndexintegerint*
Original declaration
// 0x4DE152A0
void CREATE_OBJECT(int modelHashKey, float x, float y, float z, int* objectIndex, bool registerAsNetworkObject);