RedM Natives

BOOST_PLAYER_HORSE_SPEED_FOR_TIME

Hash0x09C28F828EE674FA
Runtime nameBoostPlayerHorseSpeedForTime
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207

Signature

void BOOST_PLAYER_HORSE_SPEED_FOR_TIME(Player player, float speedBoost, int duration);

Parameters

NameTypeDescription
playerPlayer—
speedBoostfloat—
durationint—

Returns void

Usage

Lua
BoostPlayerHorseSpeedForTime(player, speedBoost, duration)

-- always works, by hash
Citizen.InvokeNative(0x09C28F828EE674FA, player, speedBoost, duration)
JavaScript and C#
JavaScript
BoostPlayerHorseSpeedForTime(player, speedBoost, duration);

// by hash
Citizen.invokeNative('0x09C28F828EE674FA', player, speedBoost + 0.0000001, duration);
C#
Function.Call((Hash)0x09C28F828EE674FA, player, speedBoost, duration);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

alloc8or RDR3 NativeDB

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