RedM Natives

WATER_OVERRIDE_SET_SHOREWAVEAMPLITUDE

Only used in smuggler2 script Also see weather.xml (ShoreWaveAmplitude)

Hash0x55123D5A7D9D3C42
Runtime nameWaterOverrideSetShorewaveamplitude
NamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xB8F87EAD7533B176

Signature

void WATER_OVERRIDE_SET_SHOREWAVEAMPLITUDE(float amplitude);

Parameters

NameTypeDescription
amplitudefloat—

Returns void

Description

Only used in smuggler2 script
Also see weather.xml (ShoreWaveAmplitude)

Usage

Lua
WaterOverrideSetShorewaveamplitude(amplitude)

-- always works, by hash
Citizen.InvokeNative(0x55123D5A7D9D3C42, amplitude)
JavaScript and C#
JavaScript
WaterOverrideSetShorewaveamplitude(amplitude);

// by hash
Citizen.invokeNative('0x55123D5A7D9D3C42', amplitude + 0.0000001);
C#
Function.Call((Hash)0x55123D5A7D9D3C42, amplitude);
  • 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.