TasksClient

isDrivebyTaskUnderneathDrivingTask

IS_DRIVEBY_TASK_UNDERNEATH_DRIVING_TASK0x8785E6E40C7A8818

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Tasks TASK
In the game
BOOL IS_DRIVEBY_TASK_UNDERNEATH_DRIVING_TASK(Ped ped)
Hash
0x8785E6E40C7A8818

Open in the interactive natives reference