{"hash":"0x524B54361229154F","ns":"TASK","name":"TASK_START_SCENARIO_IN_PLACE_HASH","slug":"TASK_START_SCENARIO_IN_PLACE_HASH","official":true,"named":true,"luaName":"TaskStartScenarioInPlaceHash","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"ped","type":"Ped"},{"name":"scenarioHash","type":"Hash"},{"name":"duration","type":"int"},{"name":"playEnterAnim","type":"BOOL"},{"name":"conditionalHash","type":"Hash"},{"name":"heading","type":"float"},{"name":"idleForever","type":"BOOL"}],"summary":"conditionalHash (optionally): Every conditional anim has requirements to play it.","descriptions":[{"source":"alloc8or","format":"text","body":"https://github.com/femga/rdr3_discoveries/blob/master/animations/scenarios\nParams: duration in milliseconds\n\nconditionalHash (optionally):\n0 = play random conditional anim.\nEvery conditional anim has requirements to play it.\nIf requirements are not met, ped plays random allowed conditional anim or can be stuck.\nFor example, this scenario type has possible conditional anim WORLD_HUMAN_LEAN_BACK_WALL_SMOKING_MALE_D, but it can not be played by player, because condition is set to NOT be CAIConditionIsPlayer (check file amb_rest.meta and amb_rest_CA.meta with OPENIV to clarify requirements)."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/TASK/TASK_START_SCENARIO_IN_PLACE_HASH","markdownUrl":"https://natives.borderlinerp.com/natives/TASK/TASK_START_SCENARIO_IN_PLACE_HASH.md","snippets":{"lua":"TaskStartScenarioInPlaceHash(ped, scenarioHash, duration, playEnterAnim, conditionalHash, heading, idleForever)","luaInvoke":"Citizen.InvokeNative(0x524B54361229154F, ped, scenarioHash, duration, playEnterAnim, conditionalHash, heading, idleForever)","js":"TaskStartScenarioInPlaceHash(ped, scenarioHash, duration, playEnterAnim, conditionalHash, heading, idleForever);","jsInvoke":"Citizen.invokeNative('0x524B54361229154F', ped, scenarioHash, duration, playEnterAnim, conditionalHash, heading + 0.0000001, idleForever);","csharp":"Function.Call((Hash)0x524B54361229154F, ped, scenarioHash, duration, playEnterAnim, conditionalHash, heading, idleForever);","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` ``.","Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason."]}}