PDA

View Full Version : How can i add vehicles to VirtualWorld


lamarr007
22/12/2011, 01:14 PM
Hi, how can I add this vehicles in VirtualWorld 1 ? :
AddStaticVehicle(468,2517.0923,-1665.5867,13.9631,280.3533,86,86);
AddStaticVehicle(468,2517.0923,-1665.5867,13.9631,280.3533,86,86);

Voldemort
22/12/2011, 01:16 PM
new Car1 = AddStaticVehicle(468,2517.0923,-1665.5867,13.9631,280.3533,86,86);
new Car2 = AddStaticVehicle(468,2517.0923,-1665.5867,13.9631,280.3533,86,86);

SetVehicleVirtualWorld(Car1,vw);
SetVehicleVirtualWorld(Car2,vw);

LinkVehicleToInterior(Car1,int);
LinkVehicleToInterior(Car2,int);

park4bmx
22/12/2011, 01:16 PM
new Veh1 = AddStaticVehicle(468,2517.0923,-1665.5867,13.9631,280.3533,86,86);
new Veh2 = AddStaticVehicle(468,2517.0923,-1665.5867,13.9631,280.3533,86,86);
SetVehicleVirtualWorld(Veh2, GetPlayerVirtualWorld(playerid));
SetVehicleVirtualWorld(Veh1, GetPlayerVirtualWorld(playerid));

format SetVehicleVirtualWorld(vehicleid,worldid)

Tee
22/12/2011, 01:18 PM
new worldvehicles[2];
worldvehicles[0] = AddStaticVehicle(468,2517.0923,-1665.5867,13.9631,280.3533,86,86);
worldvehicles[1] AddStaticVehicle(468,2517.0923,-1665.5867,13.9631,280.3533,86,86);



SetVehicleVirtualWorld(worldvehicles[0],1);
SetVehicleVirtualWorld(worldvehicles[1],1);


If you have more than 2 vehicles, I can show you how to set the virtual worlds for all of them without doing it individually.

lamarr007
22/12/2011, 02:04 PM
Thx to you :)