PedClient

hasPedReceivedEvent

HAS_PED_RECEIVED_EVENT0x8507BCB710FA6DC0

The GTA V native HAS_PED_RECEIVED_EVENT of the PED namespace, as LS:MP client scripts call it: the global function hasPedReceivedEvent, in JavaScript and in Lua.

SignatureJavaScript
hasPedReceivedEvent(ped: Ped, eventId: number): boolean
SignatureLua
hasPedReceivedEvent(ped: Ped, eventId: integer): boolean

Usage

JavaScript
const result = hasPedReceivedEvent(ped, eventId);
Lua
local result = hasPedReceivedEvent(ped, eventId)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
eventIdintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL HAS_PED_RECEIVED_EVENT(Ped ped, int eventId)
Hash
0x8507BCB710FA6DC0

Open in the interactive natives reference