TASK_USE_SCENARIO_POINT
Hash
0xCCDAE6324B6A821CRuntime name
TaskUseScenarioPointNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
Signature
void TASK_USE_SCENARIO_POINT(Ped ped, int scenario, const char* conditionalAnim, int p3, BOOL p4, BOOL p5, Hash p6, BOOL p7, float p8, BOOL p9);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
scenario | int | — |
conditionalAnim | const char* | — |
p3 | int | — |
p4 | BOOL | — |
p5 | BOOL | — |
p6 | Hash | — |
p7 | BOOL | — |
p8 | float | — |
p9 | BOOL | — |
Returns void
Usage
TaskUseScenarioPoint(ped, scenario, conditionalAnim, p3, p4, p5, p6, p7, p8, p9)
-- always works, by hash
Citizen.InvokeNative(0xCCDAE6324B6A821C, ped, scenario, conditionalAnim, p3, p4, p5, p6, p7, p8, p9)JavaScript and C#
TaskUseScenarioPoint(ped, scenario, conditionalAnim, p3, p4, p5, p6, p7, p8, p9);
// by hash
Citizen.invokeNative('0xCCDAE6324B6A821C', ped, scenario, conditionalAnim, p3, p4, p5, p6, p7, p8 + 0.0000001, p9);Function.Call((Hash)0xCCDAE6324B6A821C, ped, scenario, conditionalAnim, p3, p4, p5, p6, p7, p8, p9);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.