CREATE_PROP_SET_INSTANCE_ATTACHED_TO_ENTITY
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
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 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 |
|---|---|
| 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.
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)// 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)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
);Related PROPSET natives
- _CREATE_PROP_SET_INSTANCE_ATTACHED_TO_ENTITY_2
- _ADD_LIGHT_PROP_SET_TO_VEHICLE
- _CREATE_PROP_SET
- _CREATE_PROP_SET_2
- _SET_PROP_SET_AS_NO_LONGER_NEEDED
- _SET_PROP_SET_FLAG
- _SET_PROP_SET_VISIBLE
- _ADD_ADDITIONAL_PROP_SET_FOR_VEHICLE
- _ADD_PROP_SET_FOR_VEHICLE
- _DELETE_PROP_SET
- _DOES_PROP_SET_OF_TYPE_EXIST_NEAR_COORDS
- _DOES_VEHICLE_HAVE_ANY_LIGHT_PROP_SET
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.