Skip to main content

SetVehicleVirtualWorld

Description

Sets the 'virtual world' of a vehicle. Players will only be able to see vehicles in their own virtual world.

NameDescription
vehicleidThe ID of vehicle to set the virtual world of.
virtualWorldThe ID of the virtual world to put the vehicle in.

Returns

This function does not return any specific values.

Examples

SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 10);
SetPlayerVirtualWorld(playerid, 10);