The Lab
PROPSET native

_CREATE_PROP_SET

returns PropSet9 paramsbuild 1207

Spawns a prop set of type propsetType at the given coordinates and heading and returns its handle. The placement and probe parameters control how it is positioned on the ground.

Make sure the prop set asset is loaded before creating it.

Signature

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

Parameters

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

Facts

Facts about _CREATE_PROP_SET
Name
_CREATE_PROP_SET
Hash
0xE65C5CBA95F0E510
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(0xE65C5CBA95F0E510, -- _CREATE_PROP_SET
  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("0xE65C5CBA95F0E510", // _CREATE_PROP_SET
  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)0xE65C5CBA95F0E510, // _CREATE_PROP_SET
  (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.