SetVehicleVirtualWorld
From SA-MP Wiki
Description:
Sets the 'virtual world' of a vehicle. Players will only be able to see vehicles in their own virtual world.
(vehicleid,worldid)
vehicleid | The ID of vehicle to set the virtual world of. |
worldid | The ID of the virtual world to put the vehicle in. |
Return Values:
- 1: The function was executed successfully.
- 0: The function failed to execute. The vehicle does not exist.
SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 10); SetPlayerVirtualWorld(playerid, 10);
[edit]
Related Functions
The following functions may be helpful as they relate 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.