_CREATE_PROP_SET_INSTANCE_ATTACHED_TO_ENTITY_2
Based on its name and signature, here is our best reading:
Appears to be an alternative variant that creates a prop set instance attached to an entity. Exact differences from the main version are not documented.
Signature
PropSet _CREATE_PROP_SET_INSTANCE_ATTACHED_TO_ENTITY_2(Hash hash, float x, float y, float z, Entity entity, float p5, BOOL p6, int p7, BOOL p8); // 0xACA7FB30269096D4 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | hash | Hash |
| 2 | x | float |
| 3 | y | float |
| 4 | z | float |
| 5 | entity | Entity |
| 6 | p5 | float |
| 7 | p6 | BOOL |
| 8 | p7 | int |
| 9 | p8 | BOOL |
Facts
| Name | _CREATE_PROP_SET_INSTANCE_ATTACHED_TO_ENTITY_2 |
|---|---|
| Hash | 0xACA7FB30269096D4 |
| Namespace | |
| Returns | PropSet |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local propSet = Citizen.InvokeNative(0xACA7FB30269096D4, -- _CREATE_PROP_SET_INSTANCE_ATTACHED_TO_ENTITY_2
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)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const propSet = Citizen.invokeNative("0xACA7FB30269096D4", // _CREATE_PROP_SET_INSTANCE_ATTACHED_TO_ENTITY_2
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)int propSet = Function.Call<int>((Hash)0xACA7FB30269096D4, // _CREATE_PROP_SET_INSTANCE_ATTACHED_TO_ENTITY_2
(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
);Related PROPSET natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.