BOOST_PLAYER_HORSE_SPEED_FOR_TIME
Hash
0x09C28F828EE674FARuntime name
BoostPlayerHorseSpeedForTimeNamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
Signature
void BOOST_PLAYER_HORSE_SPEED_FOR_TIME(Player player, float speedBoost, int duration);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
speedBoost | float | — |
duration | int | — |
Returns void
Usage
BoostPlayerHorseSpeedForTime(player, speedBoost, duration)
-- always works, by hash
Citizen.InvokeNative(0x09C28F828EE674FA, player, speedBoost, duration)JavaScript and C#
BoostPlayerHorseSpeedForTime(player, speedBoost, duration);
// by hash
Citizen.invokeNative('0x09C28F828EE674FA', player, speedBoost + 0.0000001, duration);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.