[ad_1]
FiveM Modding Tutorial
Want a Tsunami mod for your server, or you you just want nothing there? Well for any of you who do not know how to do this; today is your lucky day! Today I will show you how to modify the water for Los Santos!
Step One; Download the Empty Map resource by 0dieter0 (link below)
Step Two; go to OpenIV, navigate to the directory /common/data/levels/gta5/ and copy gta5.meta
Step Three; Open gta5.meta and search for “water.xml” and modify the path to look like so;
Step Four; Go to __resource.lua and change anything with “Emptymap” to “gta5”
Step Five; Modify the water.XML as desired.
You can use other water.xml’s when using this, but some glitch due to the water types not being 0.
If you want to add your own configs, here are the codes for them;
<WaterQuads>
<Item>
<minX value="X" />
<maxX value="X" />
<minY value="Y" />
<maxY value="Y" />
<Type value="0" /> --keep zero
<IsInvisible value="false" /> --keep
<HasLimitedDepth value="false" /> --keep
<z value="Height of Water" />
<a1 value="26" />
<a2 value="26" /> --Unsure of what these do
<a3 value="26" />
<a4 value="26" />
<NoStencil value="false" />
</Item>
</WaterQuads>
<WaveQuads>
<Item>
<minX value="X" />
<maxX value="X" />
<minY value="Y" />
<maxY value="Y" />
<Amplitude value="WAVE STRENGTH" />
<XDirection value="X DIRECTION OF WAVES" />
<YDirection value="Y DIRECTION OF WAVES" />
</Item>
</WaveQuads>
<CalmingQuads>
<Item>
<minX value="X" />
<maxX value="X" />
<minY value="Y" />
<maxY value="Y" />
<fDampening value="STRENGTH OF DAMPENING" />
</Item>
</CalmingQuads>
Hope some of you find this helpful! Have fun drowning Los Santos!
P.S. Why did I use someone else’s resource to do this? The Water XML, mainly. I figured if it was a full stretch of water through where LS was, if i just invoked the level load with that water.xml, it’d do what I’d expect.
[ad_2]
Original source: https://forum.cfx.re/t/how-to-modify-water-for-los-santos/494503