RedM Natives

SET_PED_AS_TEMP_PLAYER_HORSE

Hash0x227B06324234FB09
Runtime nameSetPedAsTempPlayerHorse
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207

Signature

BOOL SET_PED_AS_TEMP_PLAYER_HORSE(Player player, Ped horse);

Parameters

NameTypeDescription
playerPlayer—
horsePed—

Returns BOOL

Usage

Lua
local retval = SetPedAsTempPlayerHorse(player, horse)

-- always works, by hash
local retval = Citizen.InvokeNative(0x227B06324234FB09, player, horse, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = SetPedAsTempPlayerHorse(player, horse);

// by hash
const retval = Citizen.invokeNative('0x227B06324234FB09', player, horse, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x227B06324234FB09, player, horse);

Sources

alloc8or RDR3 NativeDB

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