Skip to main content

CREATE_CAR

Game.CreateCarHash0x2F1D6843
Usage
local carIndex = Game.CreateCar(modelHashKey, x, y, z, registerAsNetworkObject)

Creates a car at the specified coords.

Parameters

  • modelHashKeyintegerint
  • xnumberfloat
  • ynumberfloat
  • znumberfloat
  • registerAsNetworkObjectbooleanbool

Returns

  • carIndexintegerint*
Original declaration
// 0x2F1D6843
void CREATE_CAR(int modelHashKey, float x, float y, float z, int* carIndex, bool registerAsNetworkObject);