setScenarioPedsToBeReturnedByNextCommand
SET_SCENARIO_PEDS_TO_BE_RETURNED_BY_NEXT_COMMAND0x14F19A8782C8071EThe 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.
setScenarioPedsToBeReturnedByNextCommand(value: boolean): voidsetScenarioPedsToBeReturnedByNextCommand(value: boolean)Usage
JavaScript
setScenarioPedsToBeReturnedByNextCommand(value);Lua
setScenarioPedsToBeReturnedByNextCommand(value)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
value | BOOL | boolean | boolean |
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