GET_PED_DESIRED_HEADING
Signature
float GET_PED_DESIRED_HEADING(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | The target ped |
Returns float — Returns ped's desired heading.
Usage
local retval = GetPedDesiredHeading(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0xc182f76e, ped, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetPedDesiredHeading(ped);
// by hash
const retval = Citizen.invokeNative('0xc182f76e', ped, Citizen.returnResultAnyway(), Citizen.resultAsFloat());float retval = Function.Call<float>((Hash)0xc182f76e, ped);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.