TasksClient

setPedPathClimbCostModifier

SET_PED_PATH_CLIMB_COST_MODIFIER0x88E32DB8C1A4AA4B

The GTA V native SET_PED_PATH_CLIMB_COST_MODIFIER of the TASK namespace, as LS:MP client scripts call it: the global function setPedPathClimbCostModifier, in JavaScript and in Lua.

SignatureJavaScript
setPedPathClimbCostModifier(ped: Ped, modifier: number): void
SignatureLua
setPedPathClimbCostModifier(ped: Ped, modifier: number)

Usage

JavaScript
setPedPathClimbCostModifier(ped, modifier);
Lua
setPedPathClimbCostModifier(ped, modifier)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
modifierfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Default modifier is 1.0, minimum is 0.0 and maximum is 10.0.

Reference

Namespace
Tasks TASK
In the game
void SET_PED_PATH_CLIMB_COST_MODIFIER(Ped ped, float modifier)
Hash
0x88E32DB8C1A4AA4B

Open in the interactive natives reference