@nativewrappers/redm
Version:
Native wrappers and utilities for use with RedM.
23 lines (22 loc) • 786 B
TypeScript
import type { VehicleSeat } from "../enums/VehicleSeat";
import { BaseEntity } from "./BaseEntity";
export declare class Vehicle extends BaseEntity {
constructor(handle: number);
/**
* Gets the entity from the handle given, if the entity doesn't exist it will return
* null.
*/
static fromHandle(handle: number): Vehicle | null;
/**
* Gets the ped from the current network id, this doesn't check that
* the entity is actually a ped
*/
static fromNetworkId(netId: number): Vehicle | null;
static fromStateBagName(bagName: string): Vehicle | null;
/**
*
* @param seatIndex the seat index to check
* @returns true of the specified seat is free on the mount
*/
isSeatFree(seatIndex: VehicleSeat): boolean;
}