GetVehicleVirtualWorld
From SA-MP Wiki
(Difference between revisions)
Revision as of 23:07, 30 November 2011 Smithy (Talk | contribs) ← Previous diff |
Current revision Connor Mead (Talk | contribs) |
||
Line 1: | Line 1: | ||
{{Scripting}} | {{Scripting}} | ||
- | {{Title}} | ||
{{Description|Get the virtual world of a vehicle.}} | {{Description|Get the virtual world of a vehicle.}} | ||
Line 19: | Line 18: | ||
[[Category:Scripting Functions]] | [[Category:Scripting Functions]] | ||
+ | |||
+ | [[fr:GetVehicleVirtualWorld]] |
Current revision
Description:
Get the virtual world of a vehicle.
(vehicleid)
vehicleid | The ID of the vehicle to get the virtual world of. |
Return Values:
The virtual world that the vehicle is in.
new world = GetVehicleVirtualWorld(vehicleid); SetPlayerVirtualWorld(playerid, world);
[edit]
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- SetVehicleVirtualWorld: Set the virtual world of a vehicle.
- GetPlayerVirtualWorld: Check what virtual world a player is in.