SetVehicleVirtualWorld
From SA-MP Wiki
(Difference between revisions)
Revision as of 02:13, 31 March 2013 Smithy (Talk | contribs) ← Previous diff |
Revision as of 23:53, 31 January 2014 Connor Mead (Talk | contribs) Next diff → |
||
Line 1: | Line 1: | ||
{{Scripting}} | {{Scripting}} | ||
- | {{Title}} | ||
{{Description|Sets the 'virtual world' of a vehicle. Players will only be able to see vehicles in their own virtual world.}} | {{Description|Sets the 'virtual world' of a vehicle. Players will only be able to see vehicles in their own virtual world.}} | ||
Line 20: | Line 19: | ||
[[Category:Scripting Functions]] | [[Category:Scripting Functions]] | ||
+ | |||
+ | [[fr:SetVehicleVirtualWorld]] |
Revision as of 23:53, 31 January 2014
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:
This function does not return any specific values.
SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 10); SetPlayerVirtualWorld(playerid, 10);
Related Functions
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.