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

I am such a idiot... I posted the wrong code...

 

Im not much of a coder so please forgive my idiocy...

 

I am trying to make a menu like the skin changer but a prop spawner... so I modified the code of the skin changer and It crashes for me, maybe someone else can help me fix her?

bool process_cprops_menu(){	DWORD waitTime = 150;	const int lineCount = 69;	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.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.0);				STREAMING::REQUEST_MODEL(model);				while (!STREAMING::HAS_MODEL_LOADED(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! i'll keep the post updated...

haha! I didn't remove

				while (!STREAMING::HAS_MODEL_LOADED(model));

fixed! thanks again

Link to comment
Share on other sites

Starkman123

my trainer opens then closes straight away. it didn't use to do this :/

just downloaded this version of the trainer so latest version of EVERYTHING (i validated game files before installing the trainer).

Link to comment
Share on other sites

 

You can run the game with -scOfflineOnly option

Its not safe letting Social Club login and having ANY mods in the game at all! You will get banned! Even if its just single player.Alexander Blade, What we need is something like XLIVELESS from GTA IV. Where it disables online 100% (stops social club login ect.) At this rate, for anyone who is paranoid like myself and wants to avoid a ban. I recommend making a 2nd GTA V Directory, and using a crack to launch the game to 100% avoid social club flagging your account again.

 

Its not working, I have a DISK version and I made a commandline.txt with the command in it and I still get logged into social club.

Link to comment
Share on other sites

Alexander Blade

Check pm

Alexander,

There seem to be a problem with some of the natives:

UI::GET_FIRST_BLIP_INFO_ID and UI::GET_NEXT_BLIP_INFO_ID work fine and return the blip handle, if I want to get the entity that is "attached" to the blip by using:

entity blah= GET_BLIP_INFO_ID_ENTITY_INDEX(bliphandle) it Always returns zero. I have seen that this is how it's used in the game scripts, and the same code worked fine on IV.

Also IS_BLIP_SHORT_RANGE Always returns false, even though the blip is right next to me.

 

Show the asiloader.log and ScriptHookV.log

my trainer opens then closes straight away. it didn't use to do this :/

just downloaded this version of the trainer so latest version of EVERYTHING (i validated game files before installing the trainer).

 

 

 

You can run the game with -scOfflineOnly option

Its not safe letting Social Club login and having ANY mods in the game at all! You will get banned! Even if its just single player.Alexander Blade, What we need is something like XLIVELESS from GTA IV. Where it disables online 100% (stops social club login ect.) At this rate, for anyone who is paranoid like myself and wants to avoid a ban. I recommend making a 2nd GTA V Directory, and using a crack to launch the game to 100% avoid social club flagging your account again.

 

Its not working, I have a DISK version and I made a commandline.txt with the command in it and I still get logged into social club.

 

Link to comment
Share on other sites

Richard Power Colt

I kinda thought R* might start detecting modders just from the social club login. I think I'll just remove all my mods until people come up with a way to get past the DRM. I haven't played in a few days and I hope I haven't got banned already.

  • Like 1
Link to comment
Share on other sites

Alexander Blade

It works , just checked , please check that when you press home it will show you offline mode , if not then make sure that you wrote everything correctly (-scOfflineOnly must be with -)

 

 

You can run the game with -scOfflineOnly option

Its not safe letting Social Club login and having ANY mods in the game at all! You will get banned! Even if its just single player.Alexander Blade, What we need is something like XLIVELESS from GTA IV. Where it disables online 100% (stops social club login ect.) At this rate, for anyone who is paranoid like myself and wants to avoid a ban. I recommend making a 2nd GTA V Directory, and using a crack to launch the game to 100% avoid social club flagging your account again.

 

Its not working, I have a DISK version and I made a commandline.txt with the command in it and I still get logged into social club.

 

Link to comment
Share on other sites

jippa_lippa

Sorry for bothering you, but i'm still confused.

Is this scripthook (and native trainer) safe or not? (If only playing in singleplayer, but still logging into the social club)?

I can't understand if a player gets banned even if only using mods in singleplayer or not.

 

Thank you so much for your answers.

 

I guess i could clone my GTA V folder and use a crack only for mods, but wouldn't that cause any problems at all with my legit savegames?

Edited by jippa_lippa
Link to comment
Share on other sites

Sorry for bothering you, but i'm still confused.

Is this scripthook (and native trainer) safe or not? (If only playing in singleplayer, but still logging into the social club)?

I can't understand if a player gets banned even if only using mods in singleplayer or not.

 

Thank you so much for your answers.

 

I guess i could clone my GTA V folder and use a crack only for mods, but wouldn't that cause any problems at all with my legit savegames?

It does not interfere with normal savegames and for now, it's the safest way.
Link to comment
Share on other sites

Jeweettoch13

Alexander, keep up the good work. Do u have plans for 331.1 support?

Link to comment
Share on other sites

Rohith_Kumar_Sp

Alexander, keep up the good work. Do u have plans for 331.1 support?

why would he support an older version ?

Link to comment
Share on other sites

 

Alexander, keep up the good work. Do u have plans for 331.1 support?

why would he support an older version ?

 

Yarr.

  • Like 3
Link to comment
Share on other sites

GuenosNoLife

 

Can you make map radar icon what we missing example "under the bridge" I'm 45/50 and I don't know what is 5... Or can unlock one to one for no risk ban of success SC / Steam (idk if ban or not)

 

 

Thank reply!

Maybe this will help you?

 

But don't want retry all... herm... I don't have choice I'll retry all soon, thank!

Link to comment
Share on other sites

 

 

Alexander, keep up the good work. Do u have plans for 331.1 support?

why would he support an older version ?

 

Yarr.

 

Supporting that would mean supporting software piracy.

Edited by Cyron43
Link to comment
Share on other sites

Bondergomme

 

 

Alexander, keep up the good work. Do u have plans for 331.1 support?

why would he support an older version ?

 

Yarr.

 

 

 

Link to comment
Share on other sites

im running the latest update (350.2) and latest scripthook wich says it supports this version but when i load the game it says "critical error unknown game version", so, what am i doing wrong?

Link to comment
Share on other sites

Just disconnect from the internet and play offline. I use ZoneAlarm and set it to "stop all internet activity" and then load the game.

Link to comment
Share on other sites

Jitnaught

R* has announced to ban players even for singleplayer modding!

Please be careful!!

http://gamespace.daemon-tools.cc/eng/news/the-players-have-no-rights-to-create-mods-in-gta-v-on-pc-2015-05-05

lcf3HGy.png

bullshit_everywhere-e1345505471862.jpeg

 

 

Just disconnect from the internet and play offline. I use ZoneAlarm and set it to "stop all internet activity" and then load the game.

That's probably exactly what I'm going to do. F'ing R*. Edited by LetsPlayOrDy
Link to comment
Share on other sites

I am going to install a second "free" version of the game that I can mod. And keep my steam version for online.

Link to comment
Share on other sites

Just to make clear, I am not trying to fear monger or something like that, I am trying to notify people about what I have found out to help.

Now, if you check out Rockstar's EULA, you will find "You agree not to: [..] reverse engineer, decompile, disassemble, display, perform, prepare derivative works based on, or otherwise modify the Software, in whole or in part;", and if you check the emails that have been sent out to users saying they have been banned because they violated the EULA, that seems to translate to R* banning people for modifying the game, even singleplayer.

PS: Of course it could be that several news sites are suddenly reporting the same fear mongering stuff and that the EULA actually hasn't changed but it's been like that for some time now, but I'd better be safe now.

Link to comment
Share on other sites

What's wrong with Rockstar Games?! GTA is so famous because of it's modding community.. They were even supporting it! YeardlyDiamond was famous of it's cinema gta iv machinimas.. Guess what?! Without these awesome mods, you can't even do stuff like this. GTA isn't just about stealing cars and do some missions. No! It's about having fun and do whatever you like. Banning people even though it's singleplayer only is just stupid.. No wonder that everyone is pirating games today.. It's not fair to buy a game for that price and do nothing with it..

Edited by GTAGAME ☑
Link to comment
Share on other sites

How to get tachometer and gear value?

WADQ.png

Edited by OT_VINTA
Link to comment
Share on other sites

What's wrong with Rockstar Games?! GTA is so famous because of it's modding community.. They were even supporting it! YeardlyDiamond was famous of it's cinema gta iv machinimas.. Guess what?! Without these awesome mods, you can't even do stuff like this. GTA isn't just about stealing cars and do some missions. No! It's about having fun and do whatever you like. Banning people even though it's singleplayer only is just stupid.. No wonder that everyone is pirating games today.. It's not fair to buy a game for that price and do nothing with it..

sadly YeardlyDiamond is now in heaven may He rest in Peace......well yeah R* is againts modding because of copyright and trademark (iguess)

Link to comment
Share on other sites

kirtanloorii

My question is, how do they even know that the single player game is modded at all? Especially if you never play online?

 

 

edit: corrected second question.

Edited by kirtanloorii
Link to comment
Share on other sites

Jitnaught

My question is, how do they even know that the single player game is modded at all? Especially if you never play online?

Just did a quick Google and this is what it came up with...

 

Time after time compute the hash or CRC of application's image stored in memory and compare it with known hash or CRC.

Link to comment
Share on other sites

Let's just wait for an official statement for now... I'm still hoping all this is just half as bad as it seems.

Link to comment
Share on other sites

R* has announced to ban players even for singleplayer modding!

Please be careful!!

http://gamespace.daemon-tools.cc/eng/news/the-players-have-no-rights-to-create-mods-in-gta-v-on-pc-2015-05-05

 

Just to make clear, I am not trying to fear monger or something like that, I am trying to notify people about what I have found out to help.

Now, if you check out Rockstar's EULA, you will find "You agree not to: [..] reverse engineer, decompile, disassemble, display, perform, prepare derivative works based on, or otherwise modify the Software, in whole or in part;", and if you check the emails that have been sent out to users saying they have been banned because they violated the EULA, that seems to translate to R* banning people for modifying the game, even singleplayer.

PS: Of course it could be that several news sites are suddenly reporting the same fear mongering stuff and that the EULA actually hasn't changed but it's been like that for some time now, but I'd better be safe now.

Am, what ? EULA hasn't changed since October 1, 2013, so this site writing bullsh*t. Actually GTA IV had the almost same EULA like it's now. Actually I would say it's USER CREATED CONTENT. But, I'm not expert in this, and You guys, just overestimating things. :)

 

 

 

 

My question is, how do they even know that the single player game is modded at all? Especially if you never play online?

Just did a quick Google and this is what it came up with...

 

Time after time compute the hash or CRC of application's image stored in memory and compare it with known hash or CRC.

Actually you ain't editing anything in EXE, it only applies to cracks or cheating( rare thing in this case). And they *maybe* check for Dlls in PE :)

 

All the best,

Paul.

Edited by leftas
  • Like 2
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.