TasksClient

isPedSprinting

IS_PED_SPRINTING0x57E457CD2C0FC168

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

SignatureJavaScript
isPedSprinting(ped: Ped): boolean
SignatureLua
isPedSprinting(ped: Ped): boolean

Usage

JavaScript
const result = isPedSprinting(ped);
Lua
local result = isPedSprinting(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Tasks TASK
In the game
BOOL IS_PED_SPRINTING(Ped ped)
Hash
0x57E457CD2C0FC168

Open in the interactive natives reference