GET_MOUNT
Signature
Ped GET_MOUNT(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | the ped id |
Returns Ped — Returns the entity the `ped` is currently on, or `0` if they're not on a mount.
Usage
local retval = GetMount(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0xdd31ec4e, ped, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetMount(ped);
// by hash
const retval = Citizen.invokeNative('0xdd31ec4e', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xdd31ec4e, ped);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.