_ASSOCIATE_PROP_WITH_SCENARIO
Associates the prop entity with the scenario point scenario under the name propName. Returns true on success.
Signature
BOOL _ASSOCIATE_PROP_WITH_SCENARIO(int scenario, Entity entity, const char* propName, BOOL p3); // 0x8360C47380B6F351 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | scenario | int |
| 2 | entity | Entity |
| 3 | propName | const char* |
| 4 | p3 | BOOL |
Facts
| Name | _ASSOCIATE_PROP_WITH_SCENARIO |
|---|---|
| Hash | 0x8360C47380B6F351 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x8360C47380B6F351, -- _ASSOCIATE_PROP_WITH_SCENARIO
0, -- int scenario
PlayerPedId(), -- Entity entity
"text", -- const char* propName
false -- BOOL p3
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x8360C47380B6F351", // _ASSOCIATE_PROP_WITH_SCENARIO
0, // int scenario
PlayerPedId(), // Entity entity
"text", // const char* propName
false, // BOOL p3
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x8360C47380B6F351, // _ASSOCIATE_PROP_WITH_SCENARIO
0, // int scenario
API.PlayerPedId(), // Entity entity
"text", // const char* propName
false // BOOL p3
);Related TASK natives
- _DISASSOCIATE_PROP_FROM_SCENARIO
- GET_PROP_FOR_SCENARIO_POINT
- _DELETE_SCENARIO_POINT
- _DOES_SCENARIO_GROUP_EXIST_HASH
- _DOES_SCENARIO_POINT_HAVE_PROPS
- _GET_LINKED_SCENARIO_POINTS
- _GET_PED_USING_SCENARIO_POINT
- _GET_RANSACK_SCENARIO_CONTAINER_NUM_COMPARTMENTS
- _GET_RANSACK_SCENARIO_CONTAINER_NUM_OPEN_COMPARTMENTS
- _GET_RANSACK_SCENARIO_CONTAINER_OPENING_STATE
- _GET_RANSACK_SCENARIO_CONTAINER_REMAINING_LOOT_COUNT
- _GET_SCENARIO_POINT_COORDS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.