Force Mod Garage Menu?
#1

Hey, if your reading this, thanks :P

I've made a script that when typing /tune if your car is aivalable for transfender, wheels arch aneggls, or loco low, it will teleport you to the corresponding interior.However, the objective was to make it so the mod menu (Game side one) will appear, I used the exact co-ordinates from when you drive in to one and it TP's you to the interior. I have made some functions to check whether the vehicle can be modded by either of them, heres my /tune script anyway.

Код:
	if(strcmp(cmdtext,"/tune", true) == 0)
 	{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(!IsPlayerInTransfenderVehicle(playerid, vehicleid))
  {
  	GetPlayerPos(playerid, q, w, e);
    SetPlayerVirtualWorld(playerid,playerid+1);
    SetPlayerInterior(playerid, 1);
    SetVehiclePos(vehicleid,617.5380,-1.9900,1000.6829);
    LinkVehicleToInterior (vehicleid, 1);
    SetVehicleVirtualWorld(vehicleid, playerid+1);
    SetTimer("tuneback",500,true);
	}
	else if(!IsPlayerInLocolowVehicle(playerid, vehicleid))
	{
	  GetPlayerPos(playerid, q, w, e);
	  SetPlayerVirtualWorld(playerid,playerid+1);
	  SetPlayerInterior(playerid, 2);
	  SetVehiclePos(vehicleid,616.7820,-74.8151,997.6350);
	  LinkVehicleToInterior (vehicleid, 2);
	  SetVehicleVirtualWorld(vehicleid, playerid+1);
	  SetTimer("tuneback",500,true);
	}
	else if(!IsPlayerInWAAVehicle(playerid, vehicleid))
	{
	  GetPlayerPos(playerid, q, w, e);
	  SetPlayerVirtualWorld(playerid,playerid+1);
	  SetPlayerInterior(playerid, 3);
	  SetVehiclePos(vehicleid,615.2851,-124.2390,997.6350);
	  LinkVehicleToInterior (vehicleid, 3);
	  SetVehicleVirtualWorld(vehicleid, playerid+1);
	  SetTimer("tuneback",500,true);
	  
	}
	return 1;
	}
So is there a way to force the mod menu or am I doing something wrong?

Thanks in advance,
NeRoSiS
Reply
#2

There was a mod script a while ago where someone copied the Mod Menus and remade them, You have to have the co ords of when you JUST drive in so u gotta be quick, The co ords of the Mod Shop interior are useless
Reply
#3

right, so your saying I have to teleport the player to inside the mod shop, so then when hes teleported the game teleports him to the interior?

Wasn't something I wanted to do, but hey, that's life

Someone remade all the menus? I'v spent ages looking for something like that, if you know where to find it, please post a link
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)