SET_PED_AS_TEMP_PLAYER_HORSE
Sets horse as the temporary horse of player, returning true on success.
Signature
BOOL SET_PED_AS_TEMP_PLAYER_HORSE(Player player, Ped horse); // 0x227B06324234FB09 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
| 2 | horse | Ped |
Facts
| Name | SET_PED_AS_TEMP_PLAYER_HORSE |
|---|---|
| Hash | 0x227B06324234FB09 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x227B06324234FB09, -- SET_PED_AS_TEMP_PLAYER_HORSE
PlayerId(), -- Player player
PlayerPedId() -- Ped horse
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x227B06324234FB09", // SET_PED_AS_TEMP_PLAYER_HORSE
PlayerId(), // Player player
PlayerPedId(), // Ped horse
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x227B06324234FB09, // SET_PED_AS_TEMP_PLAYER_HORSE
API.PlayerId(), // Player player
API.PlayerPedId() // Ped horse
);Related PLAYER natives
- _SET_PED_AS_SADDLE_HORSE_FOR_PLAYER
- _SET_PED_ACTIVE_PLAYER_HORSE
- _GET_TEMP_PLAYER_HORSE
- _SET_PLAYER_WEAPON_GROUP_AS_INSTANT_KILL
- SET_PLAYER_CAN_BE_HASSLED_BY_GANGS
- SET_PLAYER_CAN_USE_COVER
- SET_PLAYER_CLOTH_PIN_FRAMES
- SET_PLAYER_CONTROL
- SET_PLAYER_FORCED_AIM
- SET_PLAYER_HEALTH_RECHARGE_MULTIPLIER
- SET_PLAYER_INVINCIBLE
- SET_PLAYER_LOCKON
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.