RedM Natives

_CREATE_PROP_SET

Hash0xE65C5CBA95F0E510
Runtime nameCreatePropSet
NamespacePROPSET
SideClient
NameCommunity guess
Docs
Since build1207

Signature

PropSet _CREATE_PROP_SET(Hash propsetType, float x, float y, float z, int placementType, float heading, float zProbe, BOOL p7, BOOL useVegMod);

Parameters

NameTypeDescription
propsetTypeHash—
xfloat—
yfloat—
zfloat—
placementTypeint—
headingfloat—
zProbefloat—
p7BOOL—
useVegModBOOL—

Returns PropSet

Description

propsetType: https://github.com/femga/rdr3_discoveries/blob/master/objects/propsets_list.lua
placementType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/PlacementType

Usage

Lua
local retval = CreatePropSet(propsetType, x, y, z, placementType, heading, zProbe, p7, useVegMod)

-- always works, by hash
local retval = Citizen.InvokeNative(0xE65C5CBA95F0E510, propsetType, x, y, z, placementType, heading, zProbe, p7, useVegMod, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = CreatePropSet(propsetType, x, y, z, placementType, heading, zProbe, p7, useVegMod);

// by hash
const retval = Citizen.invokeNative('0xE65C5CBA95F0E510', propsetType, x + 0.0000001, y + 0.0000001, z + 0.0000001, placementType, heading + 0.0000001, zProbe + 0.0000001, p7, useVegMod, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xE65C5CBA95F0E510, propsetType, x, y, z, placementType, heading, zProbe, p7, useVegMod);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Enums and flags

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.