PedClient

registerPedheadshot

REGISTER_PEDHEADSHOT0x4462658788425076

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

SignatureJavaScript
registerPedheadshot(ped: Ped): number
SignatureLua
registerPedheadshot(ped: Ped): integer

Usage

JavaScript
const result = registerPedheadshot(ped);
Lua
local result = registerPedheadshot(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

int JavaScript number, Lua integer

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Reference

Namespace
Ped PED
In the game
int REGISTER_PEDHEADSHOT(Ped ped)
Hash
0x4462658788425076

Open in the interactive natives reference