RedM Natives

GET_MOUNT

Hash0xDD31EC4E
Runtime nameGetMount
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

Ped GET_MOUNT(Ped ped);

Parameters

NameTypeDescription
pedPed

the ped id

Returns Ped — Returns the entity the `ped` is currently on, or `0` if they're not on a mount.

Usage

Lua
local retval = GetMount(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0xdd31ec4e, ped, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetMount(ped);

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

Sources

Cfx.re native reference

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