_CREATE_PROP_SET_2
Alternative variant for spawning a prop set of type propsetType at the given coordinates and heading, returning its handle.
Signature
PropSet _CREATE_PROP_SET_2(Hash propsetType, float x, float y, float z, int placementType, float heading, float zProbe, BOOL p7, BOOL useVegMod); // 0x899C97A1CCE7D483 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | propsetType | Hash |
| 2 | x | float |
| 3 | y | float |
| 4 | z | float |
| 5 | placementType | int |
| 6 | heading | float |
| 7 | zProbe | float |
| 8 | p7 | BOOL |
| 9 | useVegMod | BOOL |
Facts
| Name | _CREATE_PROP_SET_2 |
|---|---|
| Hash | 0x899C97A1CCE7D483 |
| 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(0x899C97A1CCE7D483, -- _CREATE_PROP_SET_2
GetHashKey("name"), -- Hash propsetType
0.0, -- float x
0.0, -- float y
0.0, -- float z
0, -- int placementType
0.0, -- float heading
0.0, -- float zProbe
false, -- BOOL p7
false, -- BOOL useVegMod
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("0x899C97A1CCE7D483", // _CREATE_PROP_SET_2
GetHashKey("name"), // Hash propsetType
0.0, // float x
0.0, // float y
0.0, // float z
0, // int placementType
0.0, // float heading
0.0, // float zProbe
false, // BOOL p7
false, // BOOL useVegMod
Citizen.resultAsInteger()
);
console.log(propSet)int propSet = Function.Call<int>((Hash)0x899C97A1CCE7D483, // _CREATE_PROP_SET_2
(uint)API.GetHashKey("name"), // Hash propsetType
0.0f, // float x
0.0f, // float y
0.0f, // float z
0, // int placementType
0.0f, // float heading
0.0f, // float zProbe
false, // BOOL p7
false // BOOL useVegMod
);Related PROPSET natives
- _CREATE_PROP_SET_INSTANCE_ATTACHED_TO_ENTITY_2
- _CREATE_PROP_SET
- _HAS_PROP_SET_LOADED_2
- _REQUEST_PROP_SET_2
- _SET_PROP_SET_AS_NO_LONGER_NEEDED
- _SET_PROP_SET_FLAG
- _SET_PROP_SET_VISIBLE
- CREATE_PROP_SET_INSTANCE_ATTACHED_TO_ENTITY
- _ADD_ADDITIONAL_PROP_SET_FOR_VEHICLE
- _ADD_LIGHT_PROP_SET_TO_VEHICLE
- _ADD_PROP_SET_FOR_VEHICLE
- _DELETE_PROP_SET
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.