SET_SWIM_MULTIPLIER_FOR_PLAYER
Swim speed multiplier.
Hash
0xBFCEABDE34DA5085Runtime name
SetSwimMultiplierForPlayerNamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xA91C6F0FF7D16A13Signature
void SET_SWIM_MULTIPLIER_FOR_PLAYER(Player player, float multiplier);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
multiplier | float | — |
Returns void
Description
Swim speed multiplier.
Multiplier goes up to 1.49f
Usage
SetSwimMultiplierForPlayer(player, multiplier)
-- always works, by hash
Citizen.InvokeNative(0xBFCEABDE34DA5085, player, multiplier)JavaScript and C#
SetSwimMultiplierForPlayer(player, multiplier);
// by hash
Citizen.invokeNative('0xBFCEABDE34DA5085', player, multiplier + 0.0000001);Function.Call((Hash)0xBFCEABDE34DA5085, player, multiplier);- 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.