Vehcile in VirtualWorld - 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: Vehcile in VirtualWorld (
/showthread.php?tid=446500)
Vehcile in VirtualWorld -
DJRebis - 26.06.2013
Hi, i was adding static vehciles in server but the vehicle appears only in 1 VirtualWorld!
Код:
AddStaticVehicle(456,2453.5713,-2110.1404,13.5469,350.9231,1,4);
Can you tell me where i need to ad VirtualWorld for vehicle?
AW: Vehcile in VirtualWorld -
Skimmer - 26.06.2013
If you want change the virtual world of the vehicle for all world, then you need use the value
-1
Add this function below OnVehicleSpawn(vehicleid)
pawn Код:
SetVehicleVirtualWorld(vehicleid, -1);
But i think the standard world of created vehicles are already -1 or? Not sure, but here you go.
Re: Vehcile in VirtualWorld -
DJRebis - 26.06.2013
Alright, thanks for help!