PlayerClient

updateWantedPositionThisFrame

UPDATE_WANTED_POSITION_THIS_FRAME0xBC9490CA15AEA8FB

The GTA V native UPDATE_WANTED_POSITION_THIS_FRAME of the PLAYER namespace, as LS:MP client scripts call it: the global function updateWantedPositionThisFrame, in JavaScript and in Lua.

SignatureJavaScript
updateWantedPositionThisFrame(player: Player): void
SignatureLua
updateWantedPositionThisFrame(player: Player)

Usage

JavaScript
updateWantedPositionThisFrame(player);
Lua
updateWantedPositionThisFrame(player)

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger

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 native is used in both singleplayer and multiplayer scripts.

Always used like this in scripts

updateWantedPositionThisFrame(playerId());

Reference

Namespace
Player PLAYER
In the game
void UPDATE_WANTED_POSITION_THIS_FRAME(Player player)
Hash
0xBC9490CA15AEA8FB

Open in the interactive natives reference