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. Forum Support

    3. Suggestions

Script Hook V


Alexander Blade
 Share

Recommended Posts

carcols.dat

 

When will a game autosave feature be added to Native Trainer, like the one in GTA IV had?

 

Or even better, does any other mod currently have that feature?

Game already have autosave, and mobile save :S

 

Um...no, it doesn't. There's no way to manually trigger an autosave in this game. And the quick save (what you wrongly call the "mobile save") is not autosave, it's just a regular save where the game pauses and you have to choose the save slot every single time.

Edited by Darlyn
Link to comment
Share on other sites

I took the skin changer function from the player menu and made it a prop spawner, but now I noticed a glitch where if you activate anything(except the skin changer) inside the player menu and then go to the prop spawner menu it crashes, Heres the code below:

 

The Props menu

void process_props_menu(){	const float lineWidth = 250.0;	const int lineCount = 1;	std::string caption = "Prop Spawning";	static struct {		LPCSTR		text;		bool		*pState;		bool		*pUpdated;	} lines[lineCount] = {			{ "Cool Props", NULL, NULL }	};	DWORD waitTime = 150;	while (true)	{		// timed menu draw, used for pause after active line switch		DWORD maxTickCount = GetTickCount() + waitTime;		do		{			// draw menu			draw_menu_line(caption, lineWidth, 15.0, 18.0, 0.0, 5.0, false, true);			for (int i = 0; i < lineCount; i++)				if (i != activeLineIndexPlayer)					draw_menu_line(line_as_str(lines[i].text, lines[i].pState),					lineWidth, 9.0, 60.0 + i * 36.0, 0.0, 9.0, false, false);			draw_menu_line(line_as_str(lines[activeLineIndexPlayer].text, lines[activeLineIndexPlayer].pState),				lineWidth + 1.0, 11.0, 56.0 + activeLineIndexPlayer * 36.0, 0.0, 7.0, true, false);			update_features();			WAIT(0);		} while (GetTickCount() < maxTickCount);		waitTime = 0;		// process buttons		bool bSelect, bBack, bUp, bDown;		get_button_state(&bSelect, &bBack, &bUp, &bDown, NULL, NULL);		if (bSelect)		{			menu_beep();			// common variables			BOOL bPlayerExists = ENTITY::DOES_ENTITY_EXIST(PLAYER::PLAYER_PED_ID());			Player player = PLAYER::PLAYER_ID();			Ped playerPed = PLAYER::PLAYER_PED_ID();			BOOL bPlayerVehExists = ENTITY::DOES_ENTITY_EXIST(PED::GET_VEHICLE_PED_IS_USING(playerPed));			switch (activeLineIndexPlayer)			{				// skin changer			case 0:				if (process_cprops_menu())	return;				break;				// switchable features			default:				if (lines[activeLineIndexPlayer].pState)					*lines[activeLineIndexPlayer].pState = !(*lines[activeLineIndexPlayer].pState);				if (lines[activeLineIndexPlayer].pUpdated)					*lines[activeLineIndexPlayer].pUpdated = true;			}			waitTime = 200;		}		else			if (bBack || trainer_switch_pressed())			{			menu_beep();			break;			}			else				if (bUp)				{			menu_beep();			if (activeLineIndexPlayer == 0)				activeLineIndexPlayer = lineCount;			activeLineIndexPlayer--;			waitTime = 150;				}				else					if (bDown)					{			menu_beep();			activeLineIndexPlayer++;			if (activeLineIndexPlayer == lineCount)				activeLineIndexPlayer = 0;			waitTime = 150;					}	}}

The Prop Spawner

bool process_cprops_menu(){	DWORD waitTime = 150;	const int lineCount = 3;	const int itemCount = 10;	const int itemCountLastLine = itemCount;	while (true)	{		// timed menu draw, used for pause after active line switch		DWORD maxTickCount = GetTickCount() + waitTime;		do		{			// draw menu			char caption[32];			sprintf_s(caption, "Props   %d / %d", propspawnerActiveLineIndex + 1, lineCount);			draw_menu_line(caption, 350.0, 15.0, 18.0, 0.0, 5.0, false, true);			for (int i = 0; i < itemCount; i++)				if (strlen(cProps[propspawnerActiveLineIndex][i]))					draw_menu_line(cPropsNames[propspawnerActiveLineIndex][i], 100.0f, 5.0f, 200.0f, 100.0f + i * 110.0f, 5.0f, i == propspawnerActiveItemIndex, false, false);			update_features();			WAIT(0);		} while (GetTickCount() < maxTickCount);		waitTime = 0;		bool bSelect, bBack, bUp, bDown, bLeft, bRight;		get_button_state(&bSelect, &bBack, &bUp, &bDown, &bLeft, &bRight);		Ped playerPed = PLAYER::PLAYER_PED_ID();		Vector3 playerPosition = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(playerPed, 0, 5.0, 0.0);		if (bSelect)		{			menu_beep();			DWORD model = GAMEPLAY::GET_HASH_KEY((char *)cProps[propspawnerActiveLineIndex][propspawnerActiveItemIndex]);			if (STREAMING::IS_MODEL_IN_CDIMAGE(model) && STREAMING::IS_MODEL_VALID(model))			{				playerPosition = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(playerPed, 0.0, 5, 0.0);				STREAMING::REQUEST_MODEL(model);				//STREAMING::LOAD_ALL_OBJECTS_NOW();				OBJECT::CREATE_OBJECT(model, playerPosition.x, playerPosition.y, playerPosition.z, 1, 1, 1);					}				WAIT(100);				STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(model);				waitTime = 200;			}		else			if (bBack)			{			menu_beep();			break;			}			else				if (bRight)				{			menu_beep();			propspawnerActiveItemIndex++;			int itemsMax = (propspawnerActiveLineIndex == (lineCount - 1)) ? itemCountLastLine : itemCount;			if (propspawnerActiveItemIndex == itemsMax)				propspawnerActiveItemIndex = 0;			waitTime = 100;				}				else					if (bLeft)					{			menu_beep();			if (propspawnerActiveItemIndex == 0)				propspawnerActiveItemIndex = (propspawnerActiveLineIndex == (lineCount - 1)) ? itemCountLastLine : itemCount;			propspawnerActiveItemIndex--;			waitTime = 100;					}					else						if (bUp)						{			menu_beep();			if (propspawnerActiveLineIndex == 0)				propspawnerActiveLineIndex = lineCount;			propspawnerActiveLineIndex--;			waitTime = 200;						}						else							if (bDown)							{			menu_beep();			propspawnerActiveLineIndex++;			if (propspawnerActiveLineIndex == lineCount)				propspawnerActiveLineIndex = 0;			waitTime = 200;							}		if (propspawnerActiveLineIndex == (lineCount - 1))			if (propspawnerActiveItemIndex >= itemCountLastLine)				propspawnerActiveItemIndex = 0;	}	return false;}

thanks again!

Link to comment
Share on other sites

Starkman123

@Alexander Blade

 

my problem is when trying to use the north yankton trainer.

not the normal one.

Link to comment
Share on other sites

Can you please release a method how to repack update.rpf file ? It seems, that your file is some kind of modify archive without the original encryption... i would like test something...

Edited by michalss
Link to comment
Share on other sites

Could you log more info on exceptions that occur in one of the scripts? Or do you not have access to more info? "An exception occurred.." doesn't do much for debugging ;)

Link to comment
Share on other sites

RainingAcid

Does this work in GTA Online? Can I give myself cash with it?

No. Cheating online is what started this whole "war" between modders and Rockstar.

Link to comment
Share on other sites

Guys my game auto minimizes at loading screens. I can still alt tab on it and play the game but it annoys me a bit. It only happens sometimes. Is it normal? I have RGSC version 350.2 and latest ScriptHook.

Thanks!

Link to comment
Share on other sites

My plugin throws an exception and I can't reproduce it. How do I properly debug plugins?

Well first of all you should read what KIND of exception is being thrown and then have a look at the stack trace. That reveals the location in the code WHERE the crash happened. These two information should give you an idea of WHY the crash happened and then you can implement the appropriate countermeasurements.

Edited by Cyron43
Link to comment
Share on other sites

Does this work in GTA Online? Can I give myself cash with it?

you are the reason I hate Rockstar...

  • Like 3
Link to comment
Share on other sites

Does this work in GTA Online? Can I give myself cash with it?

Please read Alexander's initial post closely. It's clearly stated what happens when you switch to Multiplayer.

Edited by Cyron43
Link to comment
Share on other sites

Does this work in GTA Online? Can I give myself cash with it?

FU.

  • Like 3
Link to comment
Share on other sites

Alexander Blade

And if not through steam ? Are you sure that dinput8.dll is in the same dir as GTA5.exe ?

hey man when i launch my game through steam, the trainer does not work. no log files are generated at all. recommendations?

 

Yeah , was thinking about this .

Could you log more info on exceptions that occur in one of the scripts? Or do you not have access to more info? "An exception occurred.." doesn't do much for debugging ;)

 

Has nothing to do with scripts

Guys my game auto minimizes at loading screens. I can still alt tab on it and play the game but it annoys me a bit. It only happens sometimes. Is it normal? I have RGSC version 350.2 and latest ScriptHook.

Thanks!

Link to comment
Share on other sites

Akmal2401

where is the max stats option in the native trainer? i want to max franklin, michael and trevor stats. ti just a hassle to upgrade it

Link to comment
Share on other sites

Craigsters

where is the max stats option in the native trainer? i want to max franklin, michael and trevor stats. ti just a hassle to upgrade it

The native trainer only has a option to max your special skill for all three protagonists

 

The site cheathappens had a trainer that had max all stat's, but it was a bugged cheat and caused everyone's money to either disappear or go into the minus - 1,000,000,000 amount and they ended up disabling the max stat's option in there trainer and or removing that option, I've had a premium account at cheathappens since 2007 and follow developments of trainers there too!..

 

You'll want to keep a eye on the SNT/Native trainer development thread instead by sjaak327 [iV|REL] Simple Trainer for GTAIV

Edited by Craigsters

"You don't understand! I could've had class. I could've been a contender. I could've been somebody, instead of a bum, which is what I am."

                                                                                                                                                   

                                                                                                                                                                           On the Waterfront 1954 M.Brando

Link to comment
Share on other sites

You problably stoped reading at this point, but I'm having problems with Scrpthook

I can't (normally) skip missions!! It's a huge pain in the a** since I can't enter Ponsonbys either, making the mission Meltdown impossible to finish.

Please help, anybody, I'm stuck in the story and can't continue

Hello guys , I'm new over here :) i love PC and all his modding community in every games not only Grand Theft Auto .

 

Of course i'm one of those that want to mod GTA V but only for the Single Player part . Here come my Question .

 

Is it possible to get banned from GTA:Online if we only use MOD in Single Player wich is Offline and we never connect to GTA:Online with them ?

 

EDIT: Sorry if that Question was already Answered :/

Nope. At least not for me, you should be good

Anyone can also confirm it ? :/ i dont want to get banned for Single player / Offline Mod Usage

Link to comment
Share on other sites

Craigsters

 

You problably stoped reading at this point, but I'm having problems with Scrpthook

I can't (normally) skip missions!! It's a huge pain in the a** since I can't enter Ponsonbys either, making the mission Meltdown impossible to finish.

Please help, anybody, I'm stuck in the story and can't continue

Hello guys , I'm new over here :) i love PC and all his modding community in every games not only Grand Theft Auto .

 

Of course i'm one of those that want to mod GTA V but only for the Single Player part . Here come my Question .

 

Is it possible to get banned from GTA:Online if we only use MOD in Single Player wich is Offline and we never connect to GTA:Online with them ?

 

EDIT: Sorry if that Question was already Answered :/

Nope. At least not for me, you should be good

Anyone can also confirm it ? :/ i dont want to get banned for Single player / Offline Mod Usage

 

I've been using all versions of this trainer since April 23rd release date and in offline single player only and haven't gotten any email's from rockstar yet, just move out all the files of this native from :\Steam\steamapps\common\Grand Theft Auto V before going online to be safe

Edited by Craigsters

"You don't understand! I could've had class. I could've been a contender. I could've been somebody, instead of a bum, which is what I am."

                                                                                                                                                   

                                                                                                                                                                           On the Waterfront 1954 M.Brando

Link to comment
Share on other sites

Richard Power Colt

 

 

When will a game autosave feature be added to Native Trainer, like the one in GTA IV had?

 

Or even better, does any other mod currently have that feature?

Game already have autosave, and mobile save :S

 

Um...no, it doesn't. There's no way to manually trigger an autosave in this game. And the quick save (what you wrongly call the "mobile save") is not autosave, it's just a regular save where the game pauses and you have to choose the save slot every single time.

 

I don't think manually triggering a save counts as autosave. You mean you want an option to save the game with the press of a button? Wouldn't that be called quick save? There is an autosave in the game which automatically saves the game when you do certain things in the game like maybe modify your car or complete a mission.

Edited by GTAandStuff
Link to comment
Share on other sites

Jitnaught

Um...no, it doesn't. There's no way to manually trigger an autosave in this game. And the quick save (what you wrongly call the "mobile save") is not autosave, it's just a regular save where the game pauses and you have to choose the save slot every single time.

GAMEPLAY::DO_AUTO_SAVE()
Link to comment
Share on other sites

RichBlackGuy

any 1 can offer help or info on the lip movement animation? i want to set it to a key so i can toggle the lip movement on and off for movies

 

Also i dont mind Donating some funds if you help....

 

@romeo615videos peep me out you can see im 100% legit

Link to comment
Share on other sites

I think you should support the day one update (stablest, no map loading problems, can mod) and the latest version. Supporting the day one update totally gets rid of the Online issue and R* bans, and updating mods wouldn't be hard because you would be keeping at one version.

 

EDIT: Either that or update 2, since it's also stable.

Edited by Dap300
Link to comment
Share on other sites

Neuntoter

Maybe make a new thread to discuss bans rather than the scripthook thread.

 

Alexander: is there any chance of compiling scripthook in C rather than C++?

Link to comment
Share on other sites

spanishman3

HELP!

 

I download everything correctly and placed it in the right folder and the Script Hook V opens in GTA V, but i have a keyboard where num keys are only at the top and whenever i try navigating script hook V in changes my players weapon. I have tried changing the key bindings but it doesn't work either, my keyboard also doesn't have num lock.

Link to comment
Share on other sites

Lightningblites

I have a question. Will this mod ban me from GTA Online? I want to know ASAP because I really love this mod and if it does ban me from gta online then i going to have to remove my favorite mod. :cry:

Link to comment
Share on other sites

I have a question. Will this mod ban me from GTA Online? I want to know ASAP because I really love this mod and if it does ban me from gta online then i going to have to remove my favorite mod. :cry:

First of all you are not supposed to use this mod in GTA Online at all.

 

Second, yes it gets you banned.

Link to comment
Share on other sites

@Alexander Blade Can you make an option to freeze weather like you can freeze the time? Thanks

Link to comment
Share on other sites

carcols.dat

 

 

 

When will a game autosave feature be added to Native Trainer, like the one in GTA IV had?

 

Or even better, does any other mod currently have that feature?

Game already have autosave, and mobile save :S

 

Um...no, it doesn't. There's no way to manually trigger an autosave in this game. And the quick save (what you wrongly call the "mobile save") is not autosave, it's just a regular save where the game pauses and you have to choose the save slot every single time.

 

I don't think manually triggering a save counts as autosave. You mean you want an option to save the game with the press of a button? Wouldn't that be called quick save? There is an autosave in the game which automatically saves the game when you do certain things in the game like maybe modify your car or complete a mission.

 

Manually triggering autosave still uses the game's autosave mechanism. Which means it counts. This isn't that complicated of a concept. And the game's UI defines saving from the phone as "quick save", so that's what regular save is called now.

 

So what we need is a way to trigger the autosave mechanism. Someone above provided a function call or something for it, so now it needs to be compiled into an .asi or just added to Native Trainer itself.

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

  • 2 Users Currently Viewing
    1 member, 0 Anonymous, 1 Guest

    • c0d3x94
×
×
  • Create New...

Important Information

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