RedM Natives

_GET_PED_FROM_COVER_POINT

weaponHash can also be -1

Hash0x140B3CB1D424A945
Runtime nameGetPedFromCoverPoint
NamespaceAICOVERPOINT
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _GET_PED_FROM_COVER_POINT(Ped ped, Hash weaponHash);

Parameters

NameTypeDescription
pedPed—
weaponHashHash—

Returns void

Description

alloc8or RDR3 NativeDB

weaponHash can also be -1

VORPCORE RDR3natives

returns the ped that is using this cover point created by ADD_COVER_POINT and adding the ped using tasks like TASK_PUT_PED_DIRECTLY_(*

Usage

Lua
GetPedFromCoverPoint(ped, weaponHash)

-- always works, by hash
Citizen.InvokeNative(0x140B3CB1D424A945, ped, weaponHash)
JavaScript and C#
JavaScript
GetPedFromCoverPoint(ped, weaponHash);

// by hash
Citizen.invokeNative('0x140B3CB1D424A945', ped, weaponHash);
C#
Function.Call((Hash)0x140B3CB1D424A945, ped, weaponHash);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.