PedClient

setPedAccuracy

SET_PED_ACCURACY0x7AEFB85C1D49DEB6

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

SignatureJavaScript
setPedAccuracy(ped: Ped, accuracy: number): void
SignatureLua
setPedAccuracy(ped: Ped, accuracy: integer)

Usage

JavaScript
setPedAccuracy(ped, accuracy);
Lua
setPedAccuracy(ped, accuracy)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
accuracyintnumberinteger

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.

accuracy = 0-100, 100 being perfectly accurate

Reference

Namespace
Ped PED
In the game
void SET_PED_ACCURACY(Ped ped, int accuracy)
Hash
0x7AEFB85C1D49DEB6

Open in the interactive natives reference