CREATE_PED_ON_MOUNT
Hash
0xF89AA2BD01FC06B7Runtime name
CreatePedOnMountNamespacePED
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
| Name | Type | Description |
|---|---|---|
mount | Ped | — |
modelHash | Hash | — |
index | int | — |
p3 | BOOL | — |
p4 | BOOL | — |
p5 | BOOL | — |
p6 | BOOL | — |
Returns Ped
Usage
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#
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());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.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.