Is it possible to modify wave height/intensity in the ocean?

I’ve seen an old post here regarding the same feature I’m trying to implement in my server but it doesn’t seem to be working as of now.

I’ve seen that there’s a native reference regarding wave intensity but I really have no clue how to implement it.

I’m wondering if anyone here is willing to help me out on how I can modify the waves intensity/height in the map’s ocean.

Thanks for any help. :+1:

1 Like

Hi,
Make a script folder

Step one : Create client.lua file and paste this code block in ;

Citizen.CreateThread(function()
	while true do
		Wait(0)
		Citizen.InvokeNative(0xC54A08C85AE4D410, 1.0)
	end
end)

--0xB96B00E976BE977F

Explanation of values and native,

// 0xC54A08C85AE4D410 0xDA02F415
// N_0xc54a08c85ae4d410
void 0xC54A08C85AE4D410(float p0);`
.
This seems to edit the water wave, intensity around your current location.
0.0f = Normal
1.0f = So Calm and Smooth, a boat will stay still.
3.0f = Really Intense.

Next Make a __resource.lua file and paste the following code block in ;

resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'

client_script 'client.lua'

Put both .lua files in a folder for whatever you want to call the script and add start [script name] to your server.cfg

This should work.
Best of luck!

3 Likes

This works brilliantly! Thank you very much! :smiley:

hey would you mind posting the script? It does not seem to be working for me