How can i add vehicles to VirtualWorld
#1

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);
Reply
#2

pawn Код:
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);
Reply
#3

pawn Код:
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)
Reply
#4

pawn Код:
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);
pawn Код:
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.
Reply
#5

Thx to you
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)