Scripting/Squirrel/Functions/Vehicle.ID

From Vice City Multiplayer
Revision as of 13:49, 7 November 2016 by NicusorN5 (talk | contribs) (Created page with "Returns vehicle's ID as a integer. == Syntax == <pre>local ID = player.Vehicle.ID;</pre> == Example == <pre> function onPlayerEnterVehicle( player, vehicle, door ) { local Ve...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

Returns vehicle's ID as a integer.

Syntax

local ID = player.Vehicle.ID;

Example

function onPlayerEnterVehicle( player, vehicle, door )
{
	local Veh = vehicle.ID;
	MessagePlayer("[#ffffff]Vehicle ID :[#ffbbbb] "+Veh,player);
}

Used functions

MessagePlayer


OnPlayerEnterVehicle