{"hash":"0x19A6BE7D9C6884D3","ns":"STREAMING","name":"_REQUEST_SCENARIO_TYPE","slug":"_REQUEST_SCENARIO_TYPE","official":false,"named":true,"luaName":"RequestScenarioType","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"scenarioType","type":"Hash"},{"name":"p1","type":"int"},{"name":"entityModel","type":"Hash"},{"name":"conditionalAnim","type":"Hash"}],"summary":"entityModel can be 0 or using Hash or using GET_ENTITY_MODEL conditionalAnim can be 0 or using Hash also accepts GET_ACTIVE_DYNAMIC_SCENARIO.","descriptions":[{"source":"alloc8or","format":"text","body":"entityModel can be 0 or using Hash or using GET_ENTITY_MODEL\nconditionalAnim can be 0 or using Hash also accepts GET_ACTIVE_DYNAMIC_SCENARIO."},{"source":"vorp","format":"text","body":"p1 seems to be some kind of flag? p2 can be 0 or entity model accepts hash joaat(\"a_c_bear_01\") or with GetEntityModel(entity) p3 can be 0 or pass the conditional anim or using _GET_ACTIVE_DYNAMIC_SCENARIO"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/STREAMING/_REQUEST_SCENARIO_TYPE","markdownUrl":"https://natives.borderlinerp.com/natives/STREAMING/_REQUEST_SCENARIO_TYPE.md","snippets":{"lua":"local retval = RequestScenarioType(scenarioType, p1, entityModel, conditionalAnim)","luaInvoke":"local retval = Citizen.InvokeNative(0x19A6BE7D9C6884D3, scenarioType, p1, entityModel, conditionalAnim, Citizen.ResultAsInteger())","js":"const retval = RequestScenarioType(scenarioType, p1, entityModel, conditionalAnim);","jsInvoke":"const retval = Citizen.invokeNative('0x19A6BE7D9C6884D3', scenarioType, p1, entityModel, conditionalAnim, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x19A6BE7D9C6884D3, scenarioType, p1, entityModel, conditionalAnim);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}