RedM Natives

CREATE_PED_ON_MOUNT

Hash0xF89AA2BD01FC06B7
Runtime nameCreatePedOnMount
NamespacePED
SideClient
NameOfficial
Docs
Since build1207

Signature

Ped CREATE_PED_ON_MOUNT(Ped mount, Hash modelHash, int index, BOOL p3, BOOL p4, BOOL p5, BOOL p6);

Parameters

NameTypeDescription
mountPed—
modelHashHash—
indexint—
p3BOOL—
p4BOOL—
p5BOOL—
p6BOOL—

Returns Ped

Usage

Lua
local retval = CreatePedOnMount(mount, modelHash, index, p3, p4, p5, p6)

-- always works, by hash
local retval = Citizen.InvokeNative(0xF89AA2BD01FC06B7, mount, modelHash, index, p3, p4, p5, p6, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = CreatePedOnMount(mount, modelHash, index, p3, p4, p5, p6);

// by hash
const retval = Citizen.invokeNative('0xF89AA2BD01FC06B7', mount, modelHash, index, p3, p4, p5, p6, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xF89AA2BD01FC06B7, mount, modelHash, index, p3, p4, p5, p6);
  • 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`.

See also

Sources

alloc8or RDR3 NativeDB

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