_IS_SCENARIO_IN_USE
Checks whether a specified scenario is currently being used (actively played) by any entity (player or ped).
Hash
0x1ACBC313966C21F3Runtime name
IsScenarioInUseNamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1436
Signature
BOOL _IS_SCENARIO_IN_USE(int scenario);Parameters
| Name | Type | Description |
|---|---|---|
scenario | int | — |
Returns BOOL
Description
Checks whether a specified scenario is currently being used (actively played) by any entity (player or ped).
Returns true if the scenario is already occupied, otherwise false.
Usage
local retval = IsScenarioInUse(scenario)
-- always works, by hash
local retval = Citizen.InvokeNative(0x1ACBC313966C21F3, scenario, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsScenarioInUse(scenario);
// by hash
const retval = Citizen.invokeNative('0x1ACBC313966C21F3', scenario, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x1ACBC313966C21F3, scenario);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.