RedM Natives

SET_SCENARIO_TYPE_ENABLED

Hash0xEB47EC4E34FB7EE1
Runtime nameSetScenarioTypeEnabled
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xEB47EC4E34FB7EE1

Signature

void SET_SCENARIO_TYPE_ENABLED(const char* scenarioType, BOOL toggle);

Parameters

NameTypeDescription
scenarioTypeconst char*—
toggleBOOL—

Returns void

Usage

Lua
SetScenarioTypeEnabled(scenarioType, toggle)

-- always works, by hash
Citizen.InvokeNative(0xEB47EC4E34FB7EE1, scenarioType, toggle)
JavaScript and C#
JavaScript
SetScenarioTypeEnabled(scenarioType, toggle);

// by hash
Citizen.invokeNative('0xEB47EC4E34FB7EE1', scenarioType, toggle);
C#
Function.Call((Hash)0xEB47EC4E34FB7EE1, scenarioType, toggle);

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.