Scripting/Squirrel/Functions/Vehicle.ID
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); }