123iamking Posted September 8, 2013 Share Posted September 8, 2013 I usually use SNT to get "Never wanted" function. But I want to write a code that just disable the whole wanted level system, that means my pc don't need to check the wanted level and clear 'em every milliseconds. Link to comment Share on other sites More sharing options...
julionib Posted September 9, 2013 Share Posted September 9, 2013 i didnt tested this idea, but i guess that you can set max wanted level to 0 using: SET_MAX_WANTED_LEVELhttp://www.gtamodding.com/index.php?title=SET_MAX_WANTED_LEVEL Link to comment Share on other sites More sharing options...
123iamking Posted September 9, 2013 Author Share Posted September 9, 2013 (edited) i didnt tested this idea, but i guess that you can set max wanted level to 0 using: SET_MAX_WANTED_LEVEL http://www.gtamodding.com/index.php?title=SET_MAX_WANTED_LEVEL after that native function didn't work, I decide to post this help topic. Is there any way to get that work? Thanks Edited September 9, 2013 by 123iamking Link to comment Share on other sites More sharing options...
Skorpro Posted September 12, 2013 Share Posted September 12, 2013 (edited) Hi, I have used this C++ code in my NoPolice (Mod Pack Vol.1) mod! while(IsThreadAlive()){ ClearWantedLevel(GetPlayer()); SetMaxWantedLevel(0); SetWantedMultiplier(0.0f); TerminateAllScriptsWithThisName("ambairpotarea"); TerminateAllScriptsWithThisName("ambbridgepatrol"); TerminateAllScriptsWithThisName("ambunarea"); TerminateAllScriptsWithThisName("vigilante"); ClearWantedLevel(GetPlayer()); Wait(100);} Have fun Edited September 12, 2013 by Skorpro D T 1 Link to comment Share on other sites More sharing options...
123iamking Posted September 22, 2013 Author Share Posted September 22, 2013 (edited) Hi, I have used this C++ code in my NoPolice (Mod Pack Vol.1) mod! while(IsThreadAlive()){ ClearWantedLevel(GetPlayer()); SetMaxWantedLevel(0); SetWantedMultiplier(0.0f); TerminateAllScriptsWithThisName("ambairpotarea"); TerminateAllScriptsWithThisName("ambbridgepatrol"); TerminateAllScriptsWithThisName("ambunarea"); TerminateAllScriptsWithThisName("vigilante"); ClearWantedLevel(GetPlayer()); Wait(100);} Have fun 10X for replying, but Is there anyway to return to normal after this code running, you know, "recover the scripts" after "TerminateAllScriptsWithThisName" Edited September 22, 2013 by 123iamking Link to comment Share on other sites More sharing options...
Skorpro Posted September 23, 2013 Share Posted September 23, 2013 Of course Simply use this: C++ Code // Globalb8 bPol = 0, bRep = 0;while(IsThreadAlive()){ // Wanted on/off! ######### if (GetKeyState(80) < 0) // key8 P { if (bPol == 0) { PrintStringWithLiteralStringNow("STRING", "NoPolice Mod ON!", 2000, 1); ClearWantedLevel(GetPlayer()); SetMaxWantedLevel(0); SetWantedMultiplier(0.0f); bPol = 1; bRep = 1; } else if (bPol == 1) { PrintStringWithLiteralStringNow("STRING", "NoPolice Mod OFF!", 2000, 1); SetMaxWantedLevel(6); SetWantedMultiplier(1.5f); bPol = 0; bRep = 0; } Wait(200); // Kurze Pause für Keys! } if (bRep == 1) { TerminateAllScriptsWithThisName("ambairpotarea"); TerminateAllScriptsWithThisName("ambbridgepatrol"); TerminateAllScriptsWithThisName("ambunarea"); TerminateAllScriptsWithThisName("vigilante"); ClearWantedLevel(GetPlayer()); }} You can use one bool (b8) but I needed two of them for my mod... Link to comment Share on other sites More sharing options...
123iamking Posted July 25, 2014 Author Share Posted July 25, 2014 I'm working on this, and I found out something: GTA.Native.Function.Call("Set_Max_Wanted_Level",0); completely useless, no matter what number I set, the max wanted level still is 6; Even when I put it in a tick! Is there anyone can find this work? GTA.Native.Function.Call("TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME", "ambairpotarea"); We have to call this each time we come to the Airport; if we don't, next time the script "ambairpotarea" will live again. (same with other areas) GTA.Native.Function.Call("SET_WANTED_MULTIPLIER", 0); It works, but sometime the wanted level's still risen and have to use ("CLEAR_WANTED_LEVEL", Player.Index); set WANTED_MULTIPLIER to 1 to recover the wanted system. I know that there is a way to completely disable Wanted system just in ONE call - no need to use tick; like this save game: http://www.gtagarage.com/mods/show.php?id=7201 Link to comment Share on other sites More sharing options...
Jitnaught Posted July 25, 2014 Share Posted July 25, 2014 This is just a complete guess, but maybe try to terminate 'policetest'. Link to comment Share on other sites More sharing options...
123iamking Posted July 26, 2014 Author Share Posted July 26, 2014 (edited) This is just a complete guess, but maybe try to terminate 'policetest'. Nope, that's script has nothing to do with Wanted Level system, plus disable wanted level system have no thing to do with determinate scripts. Determinate scripts is just a temporary solution, because when the Wanted level is disable like in the Never Wanted save game (link in the previous post), those scripts can't raise stars any more. About the 4 scripts Skorpro determinate: "ambairpotarea", "ambbridgepatrol", "ambunarea", "vigilante". I think only 2 scripts need to determinate: ambairpotarea ==> trouble at Airport, ambunarea ==> trouble at unarea the other 2 no need to determinate: ambbridgepatrol ==> pay money at the bridge patrol, vigilante ==> the cop mission that only Niko can do. Edited July 26, 2014 by 123iamking Link to comment Share on other sites More sharing options...
123iamking Posted July 30, 2014 Author Share Posted July 30, 2014 (edited) Ok, now I know the way to disable wanted level system, still can't do it wanted = !wanted;if(wanted){g_U10983 = 1; // this is in tbogt ,in GTA4 (Niko) is g_U9942;SET_MAX_WANTED_LEVEL( 6 );}else{g_U10983 = 0;SET_MAX_WANTED_LEVEL( 0 );CLEAR_WANTED_LEVEL( PlayerIndex);} g_U10983 is a R*'s bool value; I gonna call that bool value is the WC (wanted control) value. The code SET_MAX_WANTED_LEVEL is only working when that WC value is set to false. The problem is that WC value only set to false when R* want to set never wanted level. I have tested this in the mission Caught With Your Pants Down (tbogt): when Luis shoot the Tank's cable bolt, I can totally set the MAX WANTED LEVEL; but of course R* will set WC value to 1 when Luis have done shooting 4 bolt. So I know how the Never wanted save game 's created, the author of that save game detected the loop hole that R* forgot to set the WC value to true in a mission. Is there anybody know how to access the WC value? Plz reply to this forum. Thanks for reading. Edited July 30, 2014 by 123iamking Link to comment Share on other sites More sharing options...
byteMe420 Posted July 30, 2014 Share Posted July 30, 2014 (edited) u should do what skorpo says and if scripts restart after u leave the area and come back then u cant do it in one call and need to use a loop or tick to terminate the script when appropriate. Edited July 30, 2014 by byteMe420 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