_IS_SCENARIO_IN_USE
Returns true if the scenario point scenario is being used by a ped.
Signature
BOOL _IS_SCENARIO_IN_USE(int scenario); // 0x1ACBC313966C21F3 b1436Parameters
| # | Name | Type |
|---|---|---|
| 1 | scenario | int |
Facts
| Name | _IS_SCENARIO_IN_USE |
|---|---|
| Hash | 0x1ACBC313966C21F3 |
| Namespace | |
| Returns | BOOL |
| Game build | 1436 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x1ACBC313966C21F3, -- _IS_SCENARIO_IN_USE
0 -- int scenario
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x1ACBC313966C21F3", // _IS_SCENARIO_IN_USE
0, // int scenario
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x1ACBC313966C21F3, // _IS_SCENARIO_IN_USE
0 // int scenario
);Related TASK natives
- _IS_SCENARIO_GROUP_ENABLED_HASH
- _IS_SCENARIO_POINT_ACTIVE
- _IS_SCENARIO_POINT_FLAG_SET
- _PED_IS_IN_SCENARIO_BASE
- IS_PED_ACTIVE_IN_SCENARIO
- TASK_USE_RANDOM_SCENARIO_IN_GROUP
- _GET_SCENARIO_POINT_PED_IS_USING
- _GET_SCENARIO_POINT_TYPE_PED_IS_USING
- _TASK_START_SCENARIO_IN_PLACE_2
- _TASK_USE_NEAREST_SCENARIO_TO_COORD
- _TASK_USE_SCENARIO_POINT_2
- DOES_SCENARIO_EXIST_IN_AREA
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.