-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some natives are returning 1 instead of true #2642
Comments
if you use OAL it should return properly, if you want to test... |
I tested with OAL and it's the same |
then propabably you need to wait for the declaration to be added with proper return |
This isn't a bug, this is for compatibility, a lot of scripts have come to expect natives to function like this and changing the behavior would break a lot of things. This is also the same for the JS runtime iirc. |
specialy for Lua yeah. |
They have always worked this way.
Apparently not. Add to fxmanifest and refresh. use_experimental_fxv2_oal 'yes'
lua54 'yes' |
Yeah maybe |
What happened?
I'm pretty sure this thing was already reported, some natives are returning 1 instead of true, i tried with and without lua 5.4 and it's the same
Expected result
Return true instead of 1
Reproduction steps
Here is a small command to test this
If you try to replace cyclone by adder it will return false (since the vehicle is not electric)
You need to be on the build 3258 to use this native
Importancy
Slight inconvenience
Area(s)
Natives
Specific version(s)
8903/Windows
Additional information
This problem is here since a long moment
The text was updated successfully, but these errors were encountered: