WATER_OVERRIDE_SET_OCEANWAVEMAXAMPLITUDE
Only used in smuggler2 script Also see weather.xml (OceanWaveMaxAmplitude)
Hash
0xF06C5B66DE20B2B8Runtime name
WaterOverrideSetOceanwavemaxamplitudeNamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xB3E6360DDE733E82Signature
void WATER_OVERRIDE_SET_OCEANWAVEMAXAMPLITUDE(float maxAmplitude);Parameters
| Name | Type | Description |
|---|---|---|
maxAmplitude | float | — |
Returns void
Description
Only used in smuggler2 script
Also see weather.xml (OceanWaveMaxAmplitude)
Usage
WaterOverrideSetOceanwavemaxamplitude(maxAmplitude)
-- always works, by hash
Citizen.InvokeNative(0xF06C5B66DE20B2B8, maxAmplitude)JavaScript and C#
WaterOverrideSetOceanwavemaxamplitude(maxAmplitude);
// by hash
Citizen.invokeNative('0xF06C5B66DE20B2B8', maxAmplitude + 0.0000001);Function.Call((Hash)0xF06C5B66DE20B2B8, maxAmplitude);- 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.