import type { eVehicleSeat } from '../enums/eVehicleSeat'; import type { Entity } from '../classes/Entity'; import type { Ped } from '../classes/Ped'; import { int, float } from '../types/NativeAliases'; export declare class Aitransport { /** * @param ped * @param transportEntity * @returns Returns `true` if the `ped` is sitting in a seat of `transportEntity` */ static isPedOnTransportEntity(ped: Ped, transportEntity: Entity): boolean; /** * flagId: * enum eTransportConfigFlags * { * TCF_NotConsideredForEntryByLocalPlayer, * TCF_0xB78D6624, * TCF_0xA9700425, * TCF_0x8D7E4641, * TCF_0xF24BAA1F, * TCF_0x63B77935, * TCF_NotConsideredForEntryByAllPlayers, * TCF_0xD17A2AFD, * TCF_0xD4E4FDD5, * TCF_0x8227C929, * TCF_0x812C1070, * TCF_0x0E1AB26F, * TCF_0xBF4EC863, * TCF_0x75660C36, * TCF_0xA2539E20, * TCF_0x9162C633, * TCF_DisableHonorModifiers, * TCF_0xF9E71CB6, * TCF_0x933ECD3F, * TCF_0x18513A34 * }; * https://github.com/femga/rdr3_discoveries/tree/master/AI/TRANSPORT_CONFIG_FLAGS * * @param transportEntity * @param flagId * @param value */ static setTransportConfigFlag(transportEntity: Entity, flagId: int, value: boolean): void; /** * Called together with IS_VEHICLE_SEAT_FREE * * @param transportEntity * @param seatIndex Refer to {@link eVehicleSeat} * @returns */ static isTransportSeatFree(transportEntity: Entity, seatIndex: eVehicleSeat): boolean; /** * _CLEAR_A* * * @param transportEntity */ static N_0x5639FBEA922788DA(transportEntity: Entity): void; /** * @param transportEntity * @param seatIndex Refer to {@link eVehicleSeat} */ static setTransportPrioritySeat(transportEntity: Entity, seatIndex: eVehicleSeat): void; /** * @param ped * @param p1 * @returns */ static isPedOnTransportSeat(ped: Ped, p1: boolean): boolean; /** * *SET_TRANSPORT** * * @param transportEntity * @param ped * @param p2 */ static N_0x4248AB2EEB3C75AD(transportEntity: Entity, ped: Ped, p2: boolean): void; /** * @param ped * @param transportEntity * @param p2 * @returns */ static isPedEnteringTransport(ped: Ped, transportEntity: Entity, p2: boolean): boolean; /** * @param ped * @param flags */ static setPedOffTransportSeat(ped: Ped, flags: int): void; /** * @param transportEntity * @param seatIndex Refer to {@link eVehicleSeat} * @returns */ static getPedInTransportSeat(transportEntity: Entity, seatIndex: eVehicleSeat): Ped | null; /** * enum eTransportUsageFlags * { * TUF_INVALID = 0, * TUF_ALLOW_DRIVER_ME = (1 << 0), * TUF_ALLOW_DRIVER_GANG = (1 << 1), * TUF_ALLOW_DRIVER_CREW = (1 << 2), * TUF_ALLOW_DRIVER_FRIENDS = (1 << 3), * TUF_ALLOW_DRIVER_ANYONE = (1 << 4), * TUF_ALLOW_PASSENGER_ME = (1 << 5), * TUF_ALLOW_PASSENGER_GANG = (1 << 6), * TUF_ALLOW_PASSENGER_CREW = (1 << 7), * TUF_ALLOW_PASSENGER_FRIENDS = (1 << 8), * TUF_ALLOW_PASSENGER_ANYONE = (1 << 9), * TUF_ALLOW_ACCESS_AI = (1 << 10) * }; * * @param transportEntity * @param flags */ static setTransportUsageFlags(transportEntity: Entity, flags: int): void; /** * flagId: see SET_TRANSPORT_CONFIG_FLAG * * @param transportEntity * @param flagId * @param p2 * @returns */ static getTransportConfigFlag(transportEntity: Entity, flagId: int, p2: boolean): any; /** * *SET_TRANSPORT** * * @param ped * @param p1 */ static N_0x8C8371EDFAF014A0(ped: Ped, p1: float): void; /** * @param ped * @param transportEntity * @param seatIndex Refer to {@link eVehicleSeat} * @param flags */ static setPedOnTransportSeat(ped: Ped, transportEntity: Entity, seatIndex: eVehicleSeat, flags: int): void; /** * @param transportEntity * @param flags */ static setTransportAccessibleSeatFlags(transportEntity: Entity, flags: int): void; /** * @param transportEntity * @param state */ static setAiCanUseTransport(transportEntity: Entity, state: boolean): void; /** * *SET_TRANSPORT** * * @param ped */ static N_0xF8C20282B237E3F7(ped: Ped): void; /** * @param ped * @param transportEntity * @param preferenceSlot * @param p3 * @param seatIndex Refer to {@link eVehicleSeat} */ static setPedUseTransportSeatPreference(ped: Ped, transportEntity: Entity, preferenceSlot: int, p3: int, seatIndex: eVehicleSeat): void; /** * @param transportEntity * @param seatIndex Refer to {@link eVehicleSeat} * @returns Returns `true` if there is an entity is in `seatIndex` */ static isTransportSeatOccupied(transportEntity: Entity, seatIndex: eVehicleSeat): boolean; /** * @returns args */ static taskExitTransport(): number; /** * @returns args */ static taskEnterTransport(): number; /** * @param ped * @param transportEntity * @returns */ static isPedExitingTransport(ped: Ped, transportEntity: Entity): boolean; /** * @param p0 * @param p1 */ static N_0x4B6C9A43F7D9109B(p0: any, p1: any): void; /** * See _SET_TRANSPORT_USAGE_FLAGS * * @param transportEntity * @returns flags */ static getTransportUsageFlags(transportEntity: Entity): [any, number]; } //# sourceMappingURL=Aitransport.d.ts.map