From SA-MP Wiki
Sets the 'virtual world' of a vehicle. Players will only be able to see vehicles in their own virtual world.
|vehicleid||The ID of vehicle to set the virtual world of.|
|worldid||The ID of the virtual world to put the vehicle in.|
|Returns||This function doesn't return a specific value|
SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 10); SetPlayerVirtualWorld(playerid, 10);
The following functions may be useful, as they are related to this function in one way or another.
- GetVehicleVirtualWorld: Check what virtual world a vehicle is in.
- SetPlayerVirtualWorld: Set the virtual world of a player.