CREATE_PED_ON_MOUNT
Spawns a ped of model modelHash riding mount in seat index, and returns its handle.
Signature
Ped CREATE_PED_ON_MOUNT(Ped mount, Hash modelHash, int index, BOOL p3, BOOL p4, BOOL p5, BOOL p6); // 0xF89AA2BD01FC06B7 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | mount | Ped |
| 2 | modelHash | Hash |
| 3 | index | int |
| 4 | p3 | BOOL |
| 5 | p4 | BOOL |
| 6 | p5 | BOOL |
| 7 | p6 | BOOL |
Facts
| Name | CREATE_PED_ON_MOUNT |
|---|---|
| Hash | 0xF89AA2BD01FC06B7 |
| Namespace | |
| Returns | Ped |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local ped = Citizen.InvokeNative(0xF89AA2BD01FC06B7, -- CREATE_PED_ON_MOUNT
PlayerPedId(), -- Ped mount
GetHashKey("a_c_horse_arabian_white"), -- Hash modelHash
0, -- int index
false, -- BOOL p3
false, -- BOOL p4
false, -- BOOL p5
false, -- BOOL p6
Citizen.ResultAsInteger()
)
print(ped)const ped = Citizen.invokeNative("0xF89AA2BD01FC06B7", // CREATE_PED_ON_MOUNT
PlayerPedId(), // Ped mount
GetHashKey("a_c_horse_arabian_white"), // Hash modelHash
0, // int index
false, // BOOL p3
false, // BOOL p4
false, // BOOL p5
false, // BOOL p6
Citizen.resultAsInteger()
);
console.log(ped)int ped = Function.Call<int>((Hash)0xF89AA2BD01FC06B7, // CREATE_PED_ON_MOUNT
API.PlayerPedId(), // Ped mount
(uint)API.GetHashKey("a_c_horse_arabian_white"), // Hash modelHash
0, // int index
false, // BOOL p3
false, // BOOL p4
false, // BOOL p5
false // BOOL p6
);Related PED natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.