Vehicle in another vw - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Vehicle in another vw (
/showthread.php?tid=648163)
Vehicle in another vw -
Filbert - 16.01.2018
Is it possible to put vehicle in another virtual world?
Re: Vehicle in another vw -
Abagail - 16.01.2018
Yes, you can use SetVehicleVirtualWorld. Note that there is not a function to get the VW, so you'll need to store it if you need to reference it.
Re: Vehicle in another vw -
kingmk - 16.01.2018
Quote:
Originally Posted by Filbert
Is it possible to put vehicle in another virtual world?
|
Yes, you can use SetVehicleVirtualWorld(vehID, VirtualWorldID);
vehID -> The ID of the spawned vehicle.
VirtualWorldID -> VirtualWorld you want to set the vehicle.
Re: Vehicle in another vw -
kingmk - 16.01.2018
Quote:
Originally Posted by Abagail
Yes, you can use SetVehicleVirtualWorld. Note that there is not a function to get the VW, so you'll need to store it if you need to reference it.
|
Actually you can use GetVehicleVirtualWorld(vehID) to get the VirtualWorld of the vehicle. You don't need to store it when u SetVehicleVirtualWorld.
Re: Vehicle in another vw -
MP2 - 17.01.2018
Always check the wiki for questions like this.
https://sampwiki.blast.hk/wiki/SetVehicleVirtualWorld