GetVehicleTypeInfo
info
Returns classification details for a vehicle entity.
Use this export in your scripts.
Parameters
vehicle
: Vehicle entity ID to inspect (number).
Returns
A table with fields:
class
: Vehicle class number.seatCount
: Number of seats.isBoat
: Whether the model is a boat.isHeli
: Whether the model is a helicopter.isPlane
: Whether the model is a plane.isBike
: Whether the model is a bike.isCar
: Whether the model is a car.isQuadbike
: Whether the model is a quadbike.isBicycle
: Whether the model is a bicycle.isTrain
: Whether the model is a train.
Usage
- Lua
- Javascript
local info = exports['FS-Lib']:GetVehicleTypeInfo(vehicle)
const info = exports['FS-Lib'].GetVehicleTypeInfo(vehicle);