-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
IsBitSet Native error #2328
Comments
IS_BIT_SET was removed from the game in build 2612, where it was replaced with an instruction. It was reimplemented for FiveM in a287933 but in a later commit it was then zerod out of the crossmap (search for 0xE2D0C323A1AE5D85) so that fix won't work for builds above 2612. It should probably repeat In any case C# provides a native way of dealing with bitwise operations. IsBitSet(x, 5) is equivalent to |
Yeah I was gonna apply something similar but I thought the native would have done something different.. thanks!! |
There is still an underlying issue of IS_BIT_SET being reimplemented in one commit and then being left out of the native crossmap. I'd still leave that open even if it's not very important |
Similarly, ErrorHandler failing validation seems unintended as well. |
What happened?
Native IsBitSet is unable to check memory addresses.. i think due to client sandboxing.
error in Log:
example code (C#)
Expected result
the native should return a boolean value
Reproduction steps
simply use IsBitSet with any memory address or bit to check
Importancy
Slight inconvenience
Area(s)
FiveM, Natives, ScRT: Lua, ScRT: C#
Specific version(s)
FiveM 7277, FXServer 7199
Additional information
SetBit and ClearBit don't seem to return the same error, they seem to work correctly, can't test it without the ability to test the set/clear bits
The text was updated successfully, but these errors were encountered: