_CREATE_PROP_SET
Hash
0xE65C5CBA95F0E510Runtime name
CreatePropSetNamespacePROPSET
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
| Name | Type | Description |
|---|---|---|
propsetType | Hash | — |
x | float | — |
y | float | — |
z | float | — |
placementType | int | — |
heading | float | — |
zProbe | float | — |
p7 | BOOL | — |
useVegMod | BOOL | — |
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
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#
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());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.InvokeNativeneeds the number — passjoaat("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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to 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
InvokeNativewith the hash — it always works.
Enums and flags
- PlacementType 6 values
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.