The Lab
PROPSET native

_CREATE_PROP_SET_2

returns PropSet9 paramsbuild 1207

Alternative variant for spawning a prop set of type propsetType at the given coordinates and heading, returning its handle.

Signature

C
PropSet _CREATE_PROP_SET_2(Hash propsetType, float x, float y, float z, int placementType, float heading, float zProbe, BOOL p7, BOOL useVegMod); // 0x899C97A1CCE7D483 b1207

Parameters

#NameType
1propsetTypeHash
2xfloat
3yfloat
4zfloat
5placementTypeint
6headingfloat
7zProbefloat
8p7BOOL
9useVegModBOOL

Facts

Facts about _CREATE_PROP_SET_2
Name
_CREATE_PROP_SET_2
Hash
0x899C97A1CCE7D483
Namespace
Returns
PropSet
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local propSet = Citizen.InvokeNative(0x899C97A1CCE7D483, -- _CREATE_PROP_SET_2
  GetHashKey("name"), -- Hash propsetType
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0, -- int placementType
  0.0, -- float heading
  0.0, -- float zProbe
  false, -- BOOL p7
  false, -- BOOL useVegMod
  Citizen.ResultAsInteger()
)
print(propSet)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const propSet = Citizen.invokeNative("0x899C97A1CCE7D483", // _CREATE_PROP_SET_2
  GetHashKey("name"), // Hash propsetType
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0, // int placementType
  0.0, // float heading
  0.0, // float zProbe
  false, // BOOL p7
  false, // BOOL useVegMod
  Citizen.resultAsInteger()
);
console.log(propSet)
C#
int propSet = Function.Call<int>((Hash)0x899C97A1CCE7D483, // _CREATE_PROP_SET_2
  (uint)API.GetHashKey("name"), // Hash propsetType
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0, // int placementType
  0.0f, // float heading
  0.0f, // float zProbe
  false, // BOOL p7
  false // BOOL useVegMod
);
All PROPSET natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.