Trifecta Posted May 24, 2015 Share Posted May 24, 2015 (edited) I found the code in C and converted it to LUA Here is my result: function notifyAboveMap(msg) UI._0x202709F4C58A0424("STRING") UI._ADD_TEXT_COMPONENT_STRING(msg) UI._0x2ED7843F8F801023(FALSE, FALSE)end However I'm getting an error at 'UI._0x202709F4C58A0424("STRING")' saying Attempt to Call field '_0x202709F4C58A0424' <a nil value> Any help would be greatly appreciated. EDIT: Forgot to mention, I'm calling the method by: notifyAboveMap("HELLO") Edited May 24, 2015 by Trifecta Link to comment Share on other sites More sharing options...
Ethenal Posted May 24, 2015 Share Posted May 24, 2015 Maybe the hash gained a name now. As in, the hash you're trying to call is actually a named function instead of one of the anonymous ones. I'm not sure how you'd go about discovering this, I presume the hash you used can still be found in natives.h Link to comment Share on other sites More sharing options...
Tiryll Posted May 24, 2015 Share Posted May 24, 2015 Maybe the hash gained a name now. As in, the hash you're trying to call is actually a named function instead of one of the anonymous ones. I'm not sure how you'd go about discovering this, I presume the hash you used can still be found in natives.h You are correct: UI._0x202709F4C58A0424("STRING") = UI._SET_NOTIFICATION_TEXT_ENTRY("STRING") UI._ADD_TEXT_COMPONENT_STRING(msg) = UI._ADD_TEXT_COMPONENT_STRING(msg) UI._0x2ED7843F8F801023(FALSE, FALSE) = UI._DRAW_NOTIFICATION(false, false) Would make his thingy work. Link to comment Share on other sites More sharing options...
assanges Posted May 24, 2015 Share Posted May 24, 2015 (edited) use the function in this way gui.NotifyAboveMap ("String", 1000) substitute 1000 to any positive integer as the milliseconds of the notification will be shown Edited May 24, 2015 by assanges Link to comment Share on other sites More sharing options...
Fireboyd78 Posted May 24, 2015 Share Posted May 24, 2015 (edited) use the function in this way gui.NotifyAboveMap ("String", 1000) substitute 1000 to any positive integer as the milliseconds of the notification will be shown This is GTALua, in case anyone was wondering. Also, for future reference, you can use NativeDB to find natives using their hash. I searched for "_0x202709F4C58A0424" (no underscore works too) and it brought me to the proper native. Edited May 24, 2015 by CarLuver69 assanges 1 Link to comment Share on other sites More sharing options...
Tiryll Posted May 25, 2015 Share Posted May 25, 2015 Also, for future reference, you can use NativeDB to find natives using their hash. I searched for "_0x202709F4C58A0424" (no underscore works too) and it brought me to the proper native. exactly what I did. Aint searching great Fireboyd78 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now