PedClient

setScenarioPedsToBeReturnedByNextCommand

SET_SCENARIO_PEDS_TO_BE_RETURNED_BY_NEXT_COMMAND0x14F19A8782C8071E

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

SignatureJavaScript
setScenarioPedsToBeReturnedByNextCommand(value: boolean): void
SignatureLua
setScenarioPedsToBeReturnedByNextCommand(value: boolean)

Usage

JavaScript
setScenarioPedsToBeReturnedByNextCommand(value);
Lua
setScenarioPedsToBeReturnedByNextCommand(value)

Parameters

ParameterTypeJavaScriptLua
valueBOOLbooleanboolean

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.

Sets a value indicating whether scenario peds should be returned by the next call to a command that returns peds. Eg. getClosestPed.

Reference

Namespace
Ped PED
In the game
void SET_SCENARIO_PEDS_TO_BE_RETURNED_BY_NEXT_COMMAND(BOOL value)
Hash
0x14F19A8782C8071E

Open in the interactive natives reference