setPedAccuracy
SET_PED_ACCURACY0x7AEFB85C1D49DEB6The 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.
setPedAccuracy(ped: Ped, accuracy: number): voidsetPedAccuracy(ped: Ped, accuracy: integer)Usage
JavaScript
setPedAccuracy(ped, accuracy);Lua
setPedAccuracy(ped, accuracy)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
accuracy | int | number | integer |
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