RedM Natives

GET_PED_DESIRED_HEADING

Hash0xC182F76E
Runtime nameGetPedDesiredHeading
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

float GET_PED_DESIRED_HEADING(Ped ped);

Parameters

NameTypeDescription
pedPed

The target ped

Returns float — Returns ped's desired heading.

Usage

Lua
local retval = GetPedDesiredHeading(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0xc182f76e, ped, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = GetPedDesiredHeading(ped);

// by hash
const retval = Citizen.invokeNative('0xc182f76e', ped, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0xc182f76e, ped);

Sources

Cfx.re native reference

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