EntityClient

setPedAsNoLongerNeeded

SET_PED_AS_NO_LONGER_NEEDED0x2595DD4236549CE3

The GTA V native SET_PED_AS_NO_LONGER_NEEDED of the ENTITY namespace, as LS:MP client scripts call it: the global function setPedAsNoLongerNeeded, in JavaScript and in Lua.

SignatureJavaScript
setPedAsNoLongerNeeded(ped: Ped): void
SignatureLua
setPedAsNoLongerNeeded(ped: Ped)
⚠
Known issue

The value of ped does not reach the game yet: LS:MP currently treats this pointer as an output, so the game receives an empty value instead of yours.

Usage

JavaScript
setPedAsNoLongerNeeded(ped);
Lua
setPedAsNoLongerNeeded(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

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.

This is an alias of setEntityAsNoLongerNeeded.

Reference

Namespace
Entity ENTITY
In the game
void SET_PED_AS_NO_LONGER_NEEDED(Ped* ped)
Hash
0x2595DD4236549CE3

Open in the interactive natives reference