i’d like to report some scripting bugs regarding water
- if i use the native “N_0xc54a08c85ae4d410” (see here) with values above the 0.0 the sea will get this texture (player swims inside it)
- if i use the native SetCurrentIntensity(float intensity) (see here) i get an error on a nil value
(using Citizen.InvokeNative works though)
screenshot: provided
date: tried for the first time today 27/august/2018
Honestly I have messed with this native too much to know I think its not a FiveM thing. I do not think this was ever used by GTA. The best thing to do is to stream the weather.xml which is not supported atm.
i solved using Citizen.InvokeNative(0xB96B00E976BE977F, 0.1)
and it works… i just wanted the team to aknowledge that this occurs when used
Which resource manifest version are you using? This can impact the natives.
Absolutely latest version
I don’t have much experience with LUA but it could be that the float is being handeled as an int or something similar. I know C# has many messed up functions that have the wrong argument type.
Eh, Lua is typically like JavaScript and treats them the same (as objects). May not be a bad idea to try though.
i repeat… with the second native… using float with Citizen.InvokeNative works like a charm
1 Like
Native works fine for me, not sure what your issue is but I will check when I get home from holiday.