Sergeeeek Posted October 8, 2014 Share Posted October 8, 2014 (edited) Download I finally managed to fix phone checks in SHDN. Problem was in aru's ScriptHook, it just wouldn't get global script variable addresses. The fix itself was very simple, I just had to change instruction at address 0x100054E0 from: mov ecx, [eax] to: mov ecx, eax in ScriptHook.dll. And now it works like a charm! Update: Here's a video prooving it Edited October 8, 2014 by Sergeeeek leftas, RyanBurnsRed, AgentWD40 and 1 other 4 Link to comment Share on other sites More sharing options...
leftas Posted October 8, 2014 Share Posted October 8, 2014 (edited) Nice, good job, I never knew that it is scripthook fault. How did find it ? P.S. I thought that someone created another thread about number checks, I was like "f*ck off"(sorry), but when I saw, lol. Best regards, Paul. Edited October 8, 2014 by leftas Link to comment Share on other sites More sharing options...
Jitnaught Posted October 8, 2014 Share Posted October 8, 2014 (edited) Nice! You should release it on other websites too so many other developers can use this!\ Oh and because I don't know assembly, and am curious why this even works... what is the difference between mov ecx, [eax] and mov ecx, eax ? Edited October 8, 2014 by LetsPlayOrDy Link to comment Share on other sites More sharing options...
Sergeeeek Posted October 8, 2014 Author Share Posted October 8, 2014 (edited) The way I did this was I downloaded ScriptHook .Net source and started digging into it. I found what phone checks don't work because aru's ScriptHook can't find the right address for a global variable. I decided to debug it and after hours of following the wrong lead I found what GetGlobalAddress function was getting the proper address of global variable array but then used it as a pointer instead. what is the difference between mov ecx, [eax] and mov ecx, eax ? the difference is in first line eax used as a pointer instead of a value and in second it used as a value which is what we want Edited October 8, 2014 by Sergeeeek Jitnaught and leftas 2 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