How Can i change Car Tuning prices ?
#1

Well, i want to change the price of what it costs to tune you'r car..

say i want to add a spoiler, and it normally costed $600.

how could i change the price of that?.

Thanks alot.
Reply
#2

You cannot change the "singleplayer" garage menus or prices.

Put you can do some workarounds. You could either script your own garage(s), or add some things under OnVehicleMod callback.
For example
Код:
public OnVehicleMod(playerid, vehicleid, componentid)
{
	GivePlayerMoney(playerid, -10000);
	SendClientMessage(playerid, COLOR_GREEN, "Every component costs 10 000$ extra");
	return 1;
}
Would make every component 10 000$ more expensive.

You could also do this for every component seperately.
Код:
public OnVehicleMod(playerid, vehicleid, componentid)
{
	switch( componentid )
	{
		case 1010: //nitro
			GivePlayerMoney(playerid, -1000);
		default: // everything else
			GivePlayerMoney(playerid, -10000);
	}
	return 1;
}
But still, the price in the "singleplayer tuning menu" would remain the same.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)