The Lab
PROPSET native

CREATE_PROP_SET_INSTANCE_ATTACHED_TO_ENTITY

returns PropSet9 paramsbuild 1207

Creates a prop set instance attached to entity at the given offset and returns its handle.

Load the prop set asset before creating the instance.

Signature

C
PropSet CREATE_PROP_SET_INSTANCE_ATTACHED_TO_ENTITY(Hash hash, float x, float y, float z, Entity entity, float p5, BOOL p6, int p7, BOOL p8); // 0x9609DBDDE18FAD8C b1207

Parameters

#NameType
1hashHash
2xfloat
3yfloat
4zfloat
5entityEntity
6p5float
7p6BOOL
8p7int
9p8BOOL

Facts

Facts about CREATE_PROP_SET_INSTANCE_ATTACHED_TO_ENTITY
Name
CREATE_PROP_SET_INSTANCE_ATTACHED_TO_ENTITY
Hash
0x9609DBDDE18FAD8C
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(0x9609DBDDE18FAD8C, -- CREATE_PROP_SET_INSTANCE_ATTACHED_TO_ENTITY
  GetHashKey("name"), -- Hash hash
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  PlayerPedId(), -- Entity entity
  0.0, -- float p5
  false, -- BOOL p6
  0, -- int p7
  false, -- BOOL p8
  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("0x9609DBDDE18FAD8C", // CREATE_PROP_SET_INSTANCE_ATTACHED_TO_ENTITY
  GetHashKey("name"), // Hash hash
  0.0, // float x
  0.0, // float y
  0.0, // float z
  PlayerPedId(), // Entity entity
  0.0, // float p5
  false, // BOOL p6
  0, // int p7
  false, // BOOL p8
  Citizen.resultAsInteger()
);
console.log(propSet)
C#
int propSet = Function.Call<int>((Hash)0x9609DBDDE18FAD8C, // CREATE_PROP_SET_INSTANCE_ATTACHED_TO_ENTITY
  (uint)API.GetHashKey("name"), // Hash hash
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  API.PlayerPedId(), // Entity entity
  0.0f, // float p5
  false, // BOOL p6
  0, // int p7
  false // BOOL p8
);
All PROPSET natives

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