Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

Happy Holidays from the GTANet team!

[Q] Is there any way to disable wanted level system?


123iamking
 Share

Recommended Posts

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

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 by 123iamking
Link to comment
Share on other sites

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 by Skorpro
Link to comment
Share on other sites

  • 2 weeks later...

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 by 123iamking
Link to comment
Share on other sites

Of course :lol: 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

  • 10 months later...

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

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 by 123iamking
Link to comment
Share on other sites

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 by 123iamking
Link to comment
Share on other sites

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 by byteMe420
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.