import type { eVehicleSeat } from '../enums/eVehicleSeat'; import type { Ped } from '../classes/Ped'; import type { Player } from '../classes/Player'; import type { Prop } from '../classes/Prop'; import { Vector3 } from '../types/Vector3'; import { Entity } from './Entity'; import { int, float } from '../types/NativeAliases'; import { VehicleTask } from './VehicleTask'; export declare class Vehicle extends Entity { static fromHandle(handle: number): Vehicle | null; static fromNetworkId(netId: number): Vehicle | null; /** * *SET_INSTANTLY** - _SET_MISSION_TRAIN* * * @param p1 */ N_0x6DE072AC8A95FFC1(p1: boolean): void; /** * 1000 is max health * Begins leaking gas at around 650 health * -999.90002441406 appears to be minimum health, although nothing special occurs <- false statement Minimum: -4000 * Maximum: 1000 -4000: Engine is destroyed * 0 and below: Engine catches fire and health rapidly declines * 300: Engine is smoking and losing functionality * 1000: Engine is perfect * * @param health */ set EngineHealth(health: float); /** * 1000 is max health * Begins leaking gas at around 650 health * -999.90002441406 appears to be minimum health, although nothing special occurs <- false statement Minimum: -4000 * Maximum: 1000 -4000: Engine is destroyed * 0 and below: Engine catches fire and health rapidly declines * 300: Engine is smoking and losing functionality * 1000: Engine is perfect * * @param health * @returns The instance for method chaining */ setEngineHealth(health: float): this; /** * Apply damage to vehicle at a location. Location is relative to vehicle model (not world). Radius of effect damage applied in a sphere at impact location * * @param offset * @param damage * @param radius * @param p6 * @returns The instance for method chaining */ setDamage(offset: Vector3, damage: float, radius: float, p6: boolean): this; /** * @param p1 */ set BrokenPartsDontAffectAiHandling(p1: boolean); /** * @param p1 * @returns The instance for method chaining */ setBrokenPartsDontAffectAiHandling(p1: boolean): this; showHorseReins(): void; /** * @param toggle */ set DisablePetrolTankFires(toggle: boolean); /** * @param toggle * @returns The instance for method chaining */ setDisablePetrolTankFires(toggle: boolean): this; /** * whistleSequence: ACKNOWLEDGE, BACKING_UP, CROSSING, DANGER, MOVING, NEXT_STATION, PASSING, STOPPED * p2 = true seems to mute the sound * * @param whistleSequence * @param p2 * @param p3 */ triggerTrainWhistle(whistleSequence: string, p2: boolean, p3: boolean): void; /** * @param toggle */ set DoorsLockedForAllPlayers(toggle: boolean); /** * @param toggle * @returns The instance for method chaining */ setDoorsLockedForAllPlayers(toggle: boolean): this; /** * @param p1 */ set MayBeUsedByGotoPointAnyMeans(p1: boolean); /** * @param p1 * @returns The instance for method chaining */ setMayBeUsedByGotoPointAnyMeans(p1: boolean): this; /** * Seems related to vehicle health, like the one in IV. * Max 1000, min 0. * Vehicle does not necessarily explode or become undrivable at 0. * * @returns */ get BodyHealth(): float; /** * @returns */ get IsTrainWaitingAtStation(): boolean; /** * @returns */ get EstimatedMaxSpeed(): float; /** * @param toggle */ set WheelsCanBreakOffWhenBlowUp(toggle: boolean); /** * @param toggle * @returns The instance for method chaining */ setWheelsCanBreakOffWhenBlowUp(toggle: boolean): this; /** * windowIndex: * 0 = Front Right Window * 1 = Front Left Window * 2 = Back Right Window * 3 = Back Left Window * * @param windowIndex */ removeWindow(windowIndex: int): void; /** * Returns train car, use GET_TRAIN_CARRIAGE when trailerNumber is bigger than 0 * * @returns */ get TrainCar(): Entity | null; /** * @param enabled */ set WheelsCanBreak(enabled: boolean); /** * @param enabled * @returns The instance for method chaining */ setWheelsCanBreak(enabled: boolean): this; /** * Requires a visibility tracker on the vehicle (TRACK_VEHICLE_VISIBILITY) * * @returns */ get IsVisible(): boolean; /** * @param toggle */ set BoatAnchor(toggle: boolean); /** * @param toggle * @returns The instance for method chaining */ setBoatAnchor(toggle: boolean): this; /** * @returns */ get Tint(): int; /** * @param toggle */ set InactiveDuringPlayback(toggle: boolean); /** * @param toggle * @returns The instance for method chaining */ setInactiveDuringPlayback(toggle: boolean): this; /** * @param doorId * @param closeInstantly Refer to {@link eDoorId} * @returns The instance for method chaining */ setDoorShut(doorId: int, closeInstantly: boolean): this; /** * Makes the vehicle accept no passengers. * * @param toggle */ set AllowNoPassengersLockon(toggle: boolean); /** * Makes the vehicle accept no passengers. * * @param toggle * @returns The instance for method chaining */ setAllowNoPassengersLockon(toggle: boolean): this; /** * @param index * @returns */ getBreakableLockObject(index: int): Prop | null; /** * @returns */ get IsOnFire(): boolean; /** * Used in Script Function MC_LOCAL_SETUP_VEH - enabling transitions * * @param p1 */ N_0xC325A6BAA62CF8A2(p1: boolean): void; /** * flags = 0: DEFAULT; 1: KEEP_OLD_SPEED * * @param flags */ set MissionTrainAsNoLongerNeeded(flags: int); /** * flags = 0: DEFAULT; 1: KEEP_OLD_SPEED * * @param flags * @returns The instance for method chaining */ setMissionTrainAsNoLongerNeeded(flags: int): this; /** * @param p1 * @param p2 * @returns */ isDriveable(p1: boolean, p2: boolean): boolean; /** * Returns handles of boat paddles entities. * * @returns left; right */ get RowingOars(): [Entity | null, Entity | null]; /** * Starts or stops the engine on the specified vehicle. vehicle: The vehicle to start or stop the engine on. * value: true to turn the vehicle on; false to turn it off. * instantly: if true, the vehicle will be set to the state immediately; otherwise, the current driver will physically turn on or off the engine. * * @param value * @param instantly * @returns The instance for method chaining */ setEngineOn(value: boolean, instantly: boolean): this; /** * *SET_TRAIN** * * @param p1 */ N_0x06A09A6E0C6D2A84(p1: boolean): void; /** * Forcing high LOD buoyancy for vehicle: p1 = false * _SET_A* * * @param p1 */ N_0x9E8711C81AA17876(p1: boolean): void; /** * @param speed */ set ForwardSpeed(speed: float); /** * @param speed * @returns The instance for method chaining */ setForwardSpeed(speed: float): this; /** * @returns */ get BreakableLocksState(): int; /** * Locks the vehicle's steering to the desired angle, explained below. Requires to be called onTick. Steering is unlocked the moment the function stops being called on the vehicle. Steer bias: * -1.0 = full right * 0.0 = centered steering * 1.0 = full left * * @param value */ set SteerBias(value: float); /** * Locks the vehicle's steering to the desired angle, explained below. Requires to be called onTick. Steering is unlocked the moment the function stops being called on the vehicle. Steer bias: * -1.0 = full right * 0.0 = centered steering * 1.0 = full left * * @param value * @returns The instance for method chaining */ setSteerBias(value: float): this; hideHorseReins(): void; /** * @param p1 */ N_0x87B974E54C71BA7B(p1: boolean): void; /** * if true, axles won't bend. * * @param toggle */ set HasStrongAxles(toggle: boolean); /** * if true, axles won't bend. * * @param toggle * @returns The instance for method chaining */ setHasStrongAxles(toggle: boolean): this; /** * @returns */ get IsPlaybackGoingOnForVehicle(): boolean; /** * Gets the trailer of a vehicle and puts it into the trailer parameter. * * @returns trailer */ get TrailerVehicle(): [boolean, Vehicle | null]; /** * https://github.com/femga/rdr3_discoveries/blob/master/vehicles/vehicle_modding/vehicle_liveries.lua * * @param liveryIndex */ set Livery(liveryIndex: int); /** * https://github.com/femga/rdr3_discoveries/blob/master/vehicles/vehicle_modding/vehicle_liveries.lua * * @param liveryIndex * @returns The instance for method chaining */ setLivery(liveryIndex: int): this; /** * @param toggle */ set ForceEngineDamageByBullet(toggle: boolean); /** * @param toggle * @returns The instance for method chaining */ setForceEngineDamageByBullet(toggle: boolean): this; /** * Params: destroyingForce is usually 100f in R* Scripts * Similar to 0xD4F5EFB55769D272, _A* * * @param wheelIndex * @param destroyingForce */ breakOffDraftWheel(wheelIndex: int, destroyingForce: float): void; /** * Restarts the train * * @returns The instance for method chaining */ setTrainLeaveStation(): this; /** * @param p1 */ set DisableEngineFires(p1: boolean); /** * @param p1 * @returns The instance for method chaining */ setDisableEngineFires(p1: boolean): this; /** * Returns 1000.0 if the function is unable to get the address of the specified vehicle or if it's not a vehicle. Minimum: -4000 * Maximum: 1000 -4000: Engine is destroyed * 0 and below: Engine catches fire and health rapidly declines * 300: Engine is smoking and losing functionality * 1000: Engine is perfect * * @returns */ get EngineHealth(): float; /** * @param speed */ set TrainSpeed(speed: float); /** * @param speed * @returns The instance for method chaining */ setTrainSpeed(speed: float): this; /** * wheelIndex 0: left, wheelIndex 1: right, 4 & 5: unknown * * @param wheelIndex * @returns */ breakOffWheel(wheelIndex: int): Entity | null; /** * Can also be used on trains and its wagons * * @param doorId * @param loose Refer to {@link eDoorId} * @param openInstantly * @returns The instance for method chaining */ setDoorOpen(doorId: int, loose: boolean, openInstantly: boolean): this; /** * @param toggle */ set AllowHomingMissleLockon(toggle: boolean); /** * @param toggle * @returns The instance for method chaining */ setAllowHomingMissleLockon(toggle: boolean): this; /** * @returns The instance for method chaining */ setTrainHalt(): this; /** * @param player * @returns */ getDoorsLockedForPlayer(player: Player): boolean; /** * @param multiplier */ set LodMultiplier(multiplier: float); /** * @param multiplier * @returns The instance for method chaining */ setLodMultiplier(multiplier: float): this; /** * @param value */ set TrainWhistleEnabled(value: boolean); /** * @param value * @returns The instance for method chaining */ setTrainWhistleEnabled(value: boolean): this; /** * _SET_VEHICLE_S* * * @param p1 */ N_0x0794199B25E499E1(p1: boolean): void; /** * @param model * @returns */ isModel(model: string | number): boolean; /** * @returns seatIndex: Refer to {@link eVehicleSeat} */ get TurretSeat(): [any, number]; /** * Often called after START_PLAYBACK_RECORDED_VEHICLE and SKIP_TIME_IN_PLAYBACK_RECORDED_VEHICLE; similar in use to FORCE_ENTITY_AI_AND_ANIMATION_UPDATE. * * @param p1 */ forcePlaybackRecordedUpdate(p1: boolean): void; /** * @param p1 */ N_0x850CE59DEC2028F3(p1: any): void; /** * @param extraId * @returns */ isExtraTurnedOn(extraId: int): boolean; /** * @param amount * @param p2 * @param p3 * @returns The instance for method chaining */ setDeterioration(amount: float, p2: int, p3: boolean): this; /** * returns true if any wheel is destroyed/detached * * @returns */ areAnyWheelsDestroyed(): boolean; stopPlaybackRecordedVehicle(): void; /** * @returns */ get IsDraftVehicle(): boolean; /** * Hashes: COACH2_BOOT_LOOT_ITEMS_COACHROB_RSC, COACH2_BOOT_LOOT_ITEMS_COACHROB, COACH2_MARY3 * * @param coachrobberyLoot */ set ForceCoachRobberyLoot(coachrobberyLoot: string | number); /** * Hashes: COACH2_BOOT_LOOT_ITEMS_COACHROB_RSC, COACH2_BOOT_LOOT_ITEMS_COACHROB, COACH2_MARY3 * * @param coachrobberyLoot * @returns The instance for method chaining */ setForceCoachRobberyLoot(coachrobberyLoot: string | number): this; /** * @param doorId * @param doorLockStatus Refer to {@link eDoorId} * @returns The instance for method chaining */ setIndividualDoorsLocked(doorId: int, doorLockStatus: int): this; /** * @param toggle */ set TrainStopsForStations(toggle: boolean); /** * @param toggle * @returns The instance for method chaining */ setTrainStopsForStations(toggle: boolean): this; /** * @param p1 */ N_0x160C1B5AB48AB87C(p1: float): void; /** * @returns */ get TimePositionInRecording(): float; /** * This native makes the vehicle stop immediately distance defines how far it will travel until stopping. * * @param distance * @param duration * @param unknown */ bringToHalt(distance: float, duration: int, unknown: boolean): void; /** * @returns */ get Owner(): Entity | null; /** * @param trackIndex * @param pos */ addTrainTemporaryStop(trackIndex: int, pos: Vector3): void; /** * @param toggle */ set InfluencesWantedLevel(toggle: boolean); /** * @param toggle * @returns The instance for method chaining */ setInfluencesWantedLevel(toggle: boolean): this; /** * @param state */ set CanBeTargetted(state: boolean); /** * @param state * @returns The instance for method chaining */ setCanBeTargetted(state: boolean): this; /** * @returns */ get TrackIndexOfTrain(): int; /** * @param p1 */ N_0xC399CC89FBA05DA0(p1: boolean): void; /** * 1000 is max health * * @returns */ get PetrolTankHealth(): float; /** * @param doorId * @param p2 Refer to {@link eDoorId} * @param p3 * @param p4 * @returns The instance for method chaining */ setDoorLatched(doorId: int, p2: boolean, p3: boolean, p4: boolean): this; /** * @returns */ get DriverOfVehicle(): Ped | null; /** * @param seatIndex * @returns Returns the ped in the specified vehicle seat, or `0` if there wasn't a ped. */ getPedInSeat(seatIndex: eVehicleSeat): Ped | null; deleteMissionTrain(): void; /** * @param p1 */ set NotStealableAmbiently(p1: boolean); /** * @param p1 * @returns The instance for method chaining */ setNotStealableAmbiently(p1: boolean): this; /** * Returns iNumCars - to be used with GET_TRAIN_CARRIAGE (trailerNumber) * _C* (O, P, Q, R) * * @returns */ get TrainCarriageTrailerNumber(): int; /** * Old name: _SET_BOAT_FROZEN_WHEN_ANCHORED * * @param p1 * @param p2 * @returns The instance for method chaining */ setBoatRemainsAnchoredWhilePlayerIsDriver(p1: boolean, p2: boolean): this; /** * Allows you to toggle bulletproof tires. * * @param toggle */ set TyresCanBurst(toggle: boolean); /** * Allows you to toggle bulletproof tires. * * @param toggle * @returns The instance for method chaining */ setTyresCanBurst(toggle: boolean): this; /** * @param seatIndex * @returns */ canShuffleSeat(seatIndex: eVehicleSeat): boolean; /** * @param toggle */ set EngineCanDegrade(toggle: boolean); /** * @param toggle * @returns The instance for method chaining */ setEngineCanDegrade(toggle: boolean): this; /** * @param p1 */ N_0x104D9A7B1C0D0783(p1: float): void; /** * @param p1 * @returns */ setOnGroundProperly(p1: boolean): boolean; /** * @param state */ set CanBeVisiblyDamaged(state: boolean); /** * @param state * @returns The instance for method chaining */ setCanBeVisiblyDamaged(state: boolean): this; /** * Returns p0 for 0xBA958F68031DDBFC (trackIndex) * * @returns */ get CurrentTrackForTrain(): int; /** * @returns expected; actual */ get DraftAnimalCount(): [any, number, number]; /** * @param ped * @returns */ detachDraftHarnessPed(ped: Ped): any; /** * Spawn without lanterns set * * @returns */ deleteLanterns(): any; /** * Used in Script Function MC_LOCAL_SETUP_VEH - enabling transitions * * @param p1 */ N_0xCBF88256E44D5D39(p1: boolean): void; /** * @returns */ get IsBoatGrounded(): boolean; /** * @param pos */ N_0xB42C87521D1BDD2F(pos: Vector3): void; /** * @returns */ get Livery(): int; /** * Setting this to false, makes the specified vehicle to where if you press Y your character doesn't even attempt the animation to enter the vehicle. Hence it's not considered aka ignored. * * @param toggle */ set IsConsideredByPlayer(toggle: boolean); /** * Setting this to false, makes the specified vehicle to where if you press Y your character doesn't even attempt the animation to enter the vehicle. Hence it's not considered aka ignored. * * @param toggle * @returns The instance for method chaining */ setIsConsideredByPlayer(toggle: boolean): this; /** * Only returns true if BRING_VEHICLE_TO_HALT is called on vehicle beforehand * * @returns */ get IsBroughtToHalt(): boolean; /** * Outputs track hash and junction index on given train vehicle handle. * *RESET_VEHICLE** (?) * * @returns trainTrack; junctionIndex * @example * ```lua * local trainTrack, junctionIndex = Citizen.InvokeNative(0x09034479E6E3E269, train, Citizen.PointerValueInt(), Citizen.PointerValueInt()) * ``` */ returnTrainInfoFromHandle(): [any, number, number]; /** * If set to true, vehicle will not take crash damage, but is still susceptible to damage from bullets and explosives * * @param toggle */ set Strong(toggle: boolean); /** * If set to true, vehicle will not take crash damage, but is still susceptible to damage from bullets and explosives * * @param toggle * @returns The instance for method chaining */ setStrong(toggle: boolean): this; /** * enum eDraftHarness * { * DRAFT_HARNESS_LR, * DRAFT_HARNESS_RR, * DRAFT_HARNESS_LM, * DRAFT_HARNESS_RM, * DRAFT_HARNESS_LF, * DRAFT_HARNESS_RF, * DRAFT_HARNESS_COUNT * }; * * @param harnessId * @returns */ getPedInDraftHarness(harnessId: int): Ped | null; /** * wetLevel: 0.0 - 1.0 * * @param wetLevel */ set WetLevel(wetLevel: float); /** * wetLevel: 0.0 - 1.0 * * @param wetLevel * @returns The instance for method chaining */ setWetLevel(wetLevel: float): this; /** * @param pos * @param p4 * @param p5 */ N_0x2200AB13CBD10F4E(pos: Vector3, p4: boolean, p5: float): void; /** * @param canBreak */ set DraftYokeCanBreak(canBreak: boolean); /** * @param canBreak * @returns The instance for method chaining */ setDraftYokeCanBreak(canBreak: boolean): this; /** * @param toggle */ set ForceHdVehicle(toggle: boolean); /** * @param toggle * @returns The instance for method chaining */ setForceHdVehicle(toggle: boolean): this; /** * Used to be incorrectly named SET_VEHICLE_EXCLUSIVE_DRIVER * * @param toggle */ set AiCanUseExclusiveSeats(toggle: boolean); /** * Used to be incorrectly named SET_VEHICLE_EXCLUSIVE_DRIVER * * @param toggle * @returns The instance for method chaining */ setAiCanUseExclusiveSeats(toggle: boolean): this; /** * @param p1 */ N_0xA72B1BF3857B94D7(p1: boolean): void; /** * *SET_DRAFT_VEHICLE*(STOP?)* * * @param p1 */ N_0xC4A2C11FC0D41916(p1: boolean): void; /** * Explodes a selected vehicle. Vehicle vehicle = Vehicle you want to explode. * BOOL isAudible = If explosion makes a sound. * BOOL isInvisible = If the explosion is invisible or not. First BOOL does not give any visual explosion, the vehicle just falls apart completely but slowly and starts to burn. * * @param isAudible * @param isInvisible * @param p3 * @param p4 */ explodeVehicle(isAudible: boolean, isInvisible: boolean, p3: any, p4: any): void; /** * Params: 1.0f will make balloon hover * * @param p1 */ set BalloonHoverState(p1: float); /** * Params: 1.0f will make balloon hover * * @param p1 * @returns The instance for method chaining */ setBalloonHoverState(p1: float): this; /** * @returns */ get DoorLockStatus(): int; requestHighDetailModel(): void; /** * @returns */ get IsInBurnout(): boolean; /** * @param toggle */ set CanBeUsedByFleeingPeds(toggle: boolean); /** * @param toggle * @returns The instance for method chaining */ setCanBeUsedByFleeingPeds(toggle: boolean): this; /** * @param p1 */ set AllowExplodesOnContact(p1: boolean); /** * @param p1 * @returns The instance for method chaining */ setAllowExplodesOnContact(p1: boolean): this; /** * @param speed */ set TrainCruiseSpeed(speed: float); /** * @param speed * @returns The instance for method chaining */ setTrainCruiseSpeed(speed: float): this; /** * @returns */ get IsWrecked(): boolean; /** * @param team * @returns */ getDoorsLockedForTeam(team: int): any; /** * *SET_TRAIN** * * @param p1 */ N_0xEF28A614B4B264B8(p1: boolean): void; /** * snowLevel: 0.0 - 1.0 * * @param snowLevel */ set SnowLevel(snowLevel: float); /** * snowLevel: 0.0 - 1.0 * * @param snowLevel * @returns The instance for method chaining */ setSnowLevel(snowLevel: float): this; lockDoorsWhenNoLongerNeeded(): void; /** * @param toggle */ set DoorsToOpenAtAnyDistance(toggle: boolean); /** * @param toggle * @returns The instance for method chaining */ setDoorsToOpenAtAnyDistance(toggle: boolean): this; /** * @returns */ get IsOnAllWheels(): boolean; /** * Deletes a vehicle. * The vehicle must be a mission entity to delete, so call this before deleting: SET_ENTITY_AS_MISSION_ENTITY(vehicle, true, true); eg how to use: * SET_ENTITY_AS_MISSION_ENTITY(vehicle, true, true); * DELETE_VEHICLE(&vehicle); Deletes the specified vehicle, then sets the handle pointed to by the pointer to NULL. */ deleteVehicle(): void; /** * @returns */ get MaxNumberOfPassengers(): int; /** * Closes all doors of a vehicle: * * @param closeInstantly */ set DoorsShut(closeInstantly: boolean); /** * Closes all doors of a vehicle: * * @param closeInstantly * @returns The instance for method chaining */ setDoorsShut(closeInstantly: boolean): this; /** * @param p1 */ set StopInstantlyWhenPlayerInactive(p1: boolean); /** * @param p1 * @returns The instance for method chaining */ setStopInstantlyWhenPlayerInactive(p1: boolean): this; /** * @param nullAttributes */ resetStuckTimer(nullAttributes: int): void; /** * Returns p1 for 0xBA958F68031DDBFC (stationIndex) * _GET_N* (NEAREST_STATION_FOR_TRAIN?) * * @returns */ N_0x1180A2974D251B7B(): int; /** * @param p1 */ set DontAllowPlayerToEnterIfLockedForPlayer(p1: boolean); /** * @param p1 * @returns The instance for method chaining */ setDontAllowPlayerToEnterIfLockedForPlayer(p1: boolean): this; /** * @param p1 */ set CanEjectPassengersIfLocked(p1: boolean); /** * @param p1 * @returns The instance for method chaining */ setCanEjectPassengersIfLocked(p1: boolean): this; /** * Gets the number of passengers, NOT including the driver. Use IS_VEHICLE_SEAT_FREE(Vehicle, -1) to also check for the driver * * @returns */ get NumberOfPassengers(): int; /** * @param speed */ set PlaybackSpeed(speed: float); /** * @param speed * @returns The instance for method chaining */ setPlaybackSpeed(speed: float): this; /** * @returns */ hasTrainLoaded(): any; /** * @returns */ N_0xDE8C5B9F65017FA1(): any; /** * @param p1 */ set HasUnbreakableLights(p1: boolean); /** * @param p1 * @returns The instance for method chaining */ setHasUnbreakableLights(p1: boolean): this; /** * @param p1 */ N_0xD826690B5CF3BEFF(p1: any): void; /** * _H* */ N_0x41F0B254DDF71473(): void; /** * Notice: BOOL p4 was wrongly named takePassengers (?) * Can be used to rotate the train by setting the BOOL direction * * @param pos * @param direction * @returns The instance for method chaining */ setMissionTrainWarpToCoords(pos: Vector3, direction: boolean): this; /** * @param toggle */ set StaysFrozenWhenCleanedUp(toggle: boolean); /** * @param toggle * @returns The instance for method chaining */ setStaysFrozenWhenCleanedUp(toggle: boolean): this; /** * *SET_VEHICLE** */ N_0x04F0579DBDD32F34(): void; /** * SET_TIME_POSITION_IN_RECORDING can be emulated by: desired_time - GET_TIME_POSITION_IN_RECORDING(vehicle) * * @param time */ skipTimeInPlaybackRecordedVehicle(time: float): void; /** * @param player * @param toggle * @returns The instance for method chaining */ setDoorsLockedForPlayer(player: Player, toggle: boolean): this; /** * Returns false if every seat is occupied. * * @returns */ areAnySeatsFree(): boolean; /** * @param speed */ set DraftDesiredSpeed(speed: float); /** * @param speed * @returns The instance for method chaining */ setDraftDesiredSpeed(speed: float): this; /** * @param toggle */ set BoatSinksWhenWrecked(toggle: boolean); /** * @param toggle * @returns The instance for method chaining */ setBoatSinksWhenWrecked(toggle: boolean): this; /** * @param seatIndex * @returns */ isSeatWarpOnly(seatIndex: eVehicleSeat): boolean; /** * Sounds the horn for the specified vehicle. vehicle: The vehicle to activate the horn for. * mode: The hash of "NORMAL" or "HELDDOWN". Can be 0. * duration: The duration to sound the horn, in milliseconds. Note: If a player is in the vehicle, it will only sound briefly. * * @param duration * @param mode * @param forever */ startHorn(duration: int, mode: string | number, forever: boolean): void; /** * @returns */ get NumBreakableLockObjects(): int; /** * @param p1 */ N_0xE6BD7DD3FD474415(p1: boolean): void; /** * Ranges from -1 to 2? (internal type is int8) * https://imgur.com/a/bPzHcft * * @param lodLevel */ set LodLevel(lodLevel: int); /** * Ranges from -1 to 2? (internal type is int8) * https://imgur.com/a/bPzHcft * * @param lodLevel * @returns The instance for method chaining */ setLodLevel(lodLevel: int): this; /** * Returns p1 for 0xBA958F68031DDBFC (stationIndex) * * @returns */ get CurrentStationForTrain(): int; /** * Params: coords = GET_ENTITY_VELOCITY * _SET_VELOCITY* * * @param pos */ N_0x12F6C6ED3EFF42DE(pos: Vector3): void; /** * Only used in R* SP Script rcm_abigail31: p1 = 5 * _GET_VEHICLE_T* - _GET_VO* * * @param p1 * @returns */ N_0xE1C0F8781BF130C2(p1: int): boolean; /** * @param offset */ set TrainOffsetFromStation(offset: float); /** * @param offset * @returns The instance for method chaining */ setTrainOffsetFromStation(offset: float): this; trackVisibility(): void; /** * @param p1 * @param p2 * @returns */ setAutomaticallyAttaches(p1: boolean, p2: any): any; /** * @param toggle */ set Undriveable(toggle: boolean); /** * @param toggle * @returns The instance for method chaining */ setUndriveable(toggle: boolean): this; /** * Old name: _STOP_BRING_VEHICLE_TO_HALT */ stopBringingToHalt(): void; /** * @param p1 */ N_0xCF342503CA4C8DF1(p1: float): void; /** * @param canDetach */ set DraftAnimalsCanDetach(canDetach: boolean); /** * @param canDetach * @returns The instance for method chaining */ setDraftAnimalsCanDetach(canDetach: boolean): this; /** * @returns */ get IsPlaybackUsingAiGoingOnForVehicle(): boolean; /** * Sets a vehicle to be strongly resistant to explosions. p0 is the vehicle; set p1 to false to toggle the effect on/off. * * @param toggle */ set ExplodesOnHighExplosionDamage(toggle: boolean); /** * Sets a vehicle to be strongly resistant to explosions. p0 is the vehicle; set p1 to false to toggle the effect on/off. * * @param toggle * @returns The instance for method chaining */ setExplodesOnHighExplosionDamage(toggle: boolean): this; /** * Sets boat to be anchored on spawn, called together with SET_BOAT_ANCHOR and _SET_BOAT_ANCHOR_BUOYANCY_COEFFICIENT * * @param p1 */ set ForceLowLodAnchorMode(p1: boolean); /** * Sets boat to be anchored on spawn, called together with SET_BOAT_ANCHOR and _SET_BOAT_ANCHOR_BUOYANCY_COEFFICIENT * * @param p1 * @returns The instance for method chaining */ setForceLowLodAnchorMode(p1: boolean): this; /** * @param p1 */ N_0x1A861F899EBBE17C(p1: boolean): void; /** * Value: mostly 99999.9f Old name: _SET_BOAT_MOVEMENT_RESISTANCE * * @param value */ set BoatLowLodAnchorDistance(value: float); /** * Value: mostly 99999.9f Old name: _SET_BOAT_MOVEMENT_RESISTANCE * * @param value * @returns The instance for method chaining */ setBoatLowLodAnchorDistance(value: float): this; /** * @param pos */ set MissionTrainCoords(pos: Vector3); /** * @param pos * @returns The instance for method chaining */ setMissionTrainCoords(pos: Vector3): this; /** * Params: p1 usually true in R* Scripts * *SET_DRAFT_VEHICLE** * * @param p1 */ N_0x4C60C333F9CCA2B6(p1: boolean): void; /** * @param windowIndex * @returns */ isWindowIntact(windowIndex: int): boolean; /** * Copies sourceVehicle's damage (broken bumpers, broken lights, etc.) to targetVehicle. * * @param targetVehicle */ copyDamages(targetVehicle: Vehicle): void; /** * _SET_VEHICLE_LI* * * @param p1 */ set LimitSpeedWhenPlayerInactive(p1: boolean); /** * _SET_VEHICLE_LI* * * @param p1 * @returns The instance for method chaining */ setLimitSpeedWhenPlayerInactive(p1: boolean): this; /** * @param allow */ set DraftAllowDraftAnimalAutoCreation(allow: boolean); /** * @param allow * @returns The instance for method chaining */ setDraftAllowDraftAnimalAutoCreation(allow: boolean): this; /** * @param team * @param toggle * @returns The instance for method chaining */ setDoorsLockedForTeam(team: int, toggle: boolean): this; /** * @param p1 */ N_0x7840576C50A13DBA(p1: boolean): void; /** * @param toggle */ set CanBreak(toggle: boolean); /** * @param toggle * @returns The instance for method chaining */ setCanBreak(toggle: boolean): this; /** * @param toggle */ set Handbrake(toggle: boolean); /** * @param toggle * @returns The instance for method chaining */ setHandbrake(toggle: boolean): this; /** * Total height is calculated using: cargo ratio + pelt ratio (by pelt count) * Screenshot: https://imgur.com/a/nsomtiv * * @param height * @param immediately * @returns The instance for method chaining */ setBatchTarpHeight(height: float, immediately: boolean): this; /** * @param dirtLevel */ set DirtLevel(dirtLevel: float); /** * @param dirtLevel * @returns The instance for method chaining */ setDirtLevel(dirtLevel: float): this; /** * VEH_STUCK_ON_ROOF = 0, * VEH_STUCK_ON_SIDE, * VEH_STUCK_HUNG_UP, * VEH_STUCK_JAMMED * * @param stuckType * @param ms * @returns */ isStuckTimerUp(stuckType: int, ms: int): boolean; /** * Returns true if the vehicle's current speed is less than, or equal to 0.0025f. For some vehicles it returns true if the current speed is <= 0.00039999999. * * @returns */ get IsStopped(): boolean; /** * @param p1 */ N_0x15CC8C33D7FFCC4A(p1: int): void; /** * @param enabled */ set IsInHurry(enabled: boolean); /** * @param enabled * @returns The instance for method chaining */ setIsInHurry(enabled: boolean): this; /** * @param extraId * @returns */ doesExtraExist(extraId: int): boolean; /** * @param seed */ set DraftAnimalRandomSeed(seed: int); /** * @param seed * @returns The instance for method chaining */ setDraftAnimalRandomSeed(seed: int): this; /** * @param wheel * @returns */ isWheelDestroyed(wheel: int): boolean; /** * p3 is some flag related to 'trailers' (invokes CVehicle::GetTrailer). See REQUEST_VEHICLE_RECORDING * * @param recording * @param script * @param p3 */ startPlaybackRecordedVehicle(recording: int, script: string, p3: boolean): void; /** * dirtLevel: 0.0 - 1.0 * * @param dirtLevel */ set DirtLevel2(dirtLevel: float); /** * dirtLevel: 0.0 - 1.0 * * @param dirtLevel * @returns The instance for method chaining */ setDirtLevel2(dirtLevel: float): this; /** * @param trailerNumber * @returns */ getTrainCarriage(trailerNumber: int): Entity | null; /** * @returns */ get IsFadingOut(): boolean; fadeAndDestroyVehicle(): void; /** * @returns */ get IsPropSetApplied(): any; /** * Maximum possible speed is 30.0 (108 km/h) * * @param speed */ set TrainMaxSpeed(speed: float); /** * Maximum possible speed is 30.0 (108 km/h) * * @param speed * @returns The instance for method chaining */ setTrainMaxSpeed(speed: float): this; /** * Old name: _SET_DISABLE_SUPERDUMMY_MODE * * @param disable */ set DisableSuperdummy(disable: boolean); /** * Old name: _SET_DISABLE_SUPERDUMMY_MODE * * @param disable * @returns The instance for method chaining */ setDisableSuperdummy(disable: boolean): this; /** * Old name: _SET_VEHICLE_DOOR_CAN_BREAK * * @param doorId * @param isBreakable Refer to {@link eDoorId} * @returns The instance for method chaining */ setDoorAllowedToBeBrokenOff(doorId: int, isBreakable: boolean): this; /** * @param value */ set BodyHealth(value: float); /** * @param value * @returns The instance for method chaining */ setBodyHealth(value: float): this; /** * @param toggle */ set ProvidesCover(toggle: boolean); /** * @param toggle * @returns The instance for method chaining */ setProvidesCover(toggle: boolean): this; /** * @param value */ modifyTopSpeed(value: float): void; /** * index: 0 - 1 Used to be incorrectly named _SET_VEHICLE_EXCLUSIVE_DRIVER_2 * * @param ped * @param index * @returns The instance for method chaining */ setExclusiveDriver(ped: Ped, index: int): this; /** * 1000 is max health * * @param health */ set PetrolTankHealth(health: float); /** * 1000 is max health * * @param health * @returns The instance for method chaining */ setPetrolTankHealth(health: float): this; /** * @param doorLockStatus */ set DoorsLocked(doorLockStatus: int); /** * @param doorLockStatus * @returns The instance for method chaining */ setDoorsLocked(doorLockStatus: int): this; /** * @returns */ canAnchorBoatHere(): boolean; /** * This fixes a vehicle. * If the vehicle's engine's broken then you cannot fix it with this native. * * @returns The instance for method chaining */ setFixed(): this; /** * @param toggle */ set KeepEngineOnWhenAbandoned(toggle: boolean); /** * @param toggle * @returns The instance for method chaining */ setKeepEngineOnWhenAbandoned(toggle: boolean): this; /** * @param harnessId * @returns */ detachDraftHarnessFromIndex(harnessId: int): any; /** * Sets the vehicle's lights state. * * @param state */ set Lights(state: int); /** * Sets the vehicle's lights state. * * @param state * @returns The instance for method chaining */ setLights(state: int): this; /** * @param owned */ set HasBeenOwnedByPlayer(owned: boolean); /** * @param owned * @returns The instance for method chaining */ setHasBeenOwnedByPlayer(owned: boolean): this; /** * Note: only some vehicle have extras * https://github.com/femga/rdr3_discoveries/blob/master/vehicles/vehicle_modding/vehicle_extras.lua * * @param extraId * @param disable * @returns The instance for method chaining */ setExtra(extraId: int, disable: boolean): this; /** * @returns */ get TrainDirection(): any; /** * @param seatIndex * @returns Returns the last ped in the `seatIndex` or `0` if there wasn't one, or the ped no longer exists. */ getLastPedInSeat(seatIndex: eVehicleSeat): Ped | null; /** * @param doorId * @param speed Refer to {@link eDoorId} * @param angle * @returns The instance for method chaining */ setDoorControl(doorId: int, speed: int, angle: float): this; /** * @param toggle */ set DisablePetrolTankDamage(toggle: boolean); /** * @param toggle * @returns The instance for method chaining */ setDisablePetrolTankDamage(toggle: boolean): this; /** * @param toggle */ set BreakableLocksUnbreakable(toggle: boolean); /** * @param toggle * @returns The instance for method chaining */ setBreakableLocksUnbreakable(toggle: boolean): this; /** * @param p1 */ set RespectsLocksWhenHasDriver(p1: boolean); /** * @param p1 * @returns The instance for method chaining */ setRespectsLocksWhenHasDriver(p1: boolean): this; /** * *SET_TRAIN** * * @param p1 */ N_0xAE7E66A61E7C17A5(p1: boolean): void; /** * Returns rage::NumericLimits::kMax (3.402823466e+38) if vehicle is not a valid vehicle of type VEHICLE_TYPE_DRAFT. * * @returns */ get DraftDesiredSpeed(): float; /** * *SET_VEHICLE_WHEELS** * * @param p1 * @param p2 */ N_0x73118A3EE9C9B6DB(p1: int, p2: boolean): void; /** * @param doorId * @returns */ isDoorBroken(doorId: int): boolean; /** * @param doorId * @returns */ isDoorFullyOpen(doorId: int): boolean; /** * @param p1 */ set ForceHighLodVehicle(p1: boolean); /** * @param p1 * @returns The instance for method chaining */ setForceHighLodVehicle(p1: boolean): this; /** * Use - 1 for last seat index. * * @param seatIndex * @returns Returns `true` if the vehicle seat is free (has no ped in it) */ isSeatFree(seatIndex: eVehicleSeat): boolean; /** * https://github.com/femga/rdr3_discoveries/blob/master/vehicles/vehicle_modding/vehicle_tints.lua * * @param tintId */ set Tint(tintId: int); /** * https://github.com/femga/rdr3_discoveries/blob/master/vehicles/vehicle_modding/vehicle_tints.lua * * @param tintId * @returns The instance for method chaining */ setTint(tintId: int): this; /** * Returns trackIndex * * @returns */ get TrainTrackFromTrainVehicle(): int; /** * mudLevel: 0.0 - 1.0 * * @param mudLevel */ set MudLevel(mudLevel: float); /** * mudLevel: 0.0 - 1.0 * * @param mudLevel * @returns The instance for method chaining */ setMudLevel(mudLevel: float): this; /** * *SET_DRAFT_VEHICLE** * * @param p1 */ N_0xFC4F15A7DDDC47B1(p1: boolean): void; /** * @param toggle */ N_0x6B53F4B811E583D2(toggle: boolean): void; /** * @param isStolen */ set IsStolen(isStolen: boolean); /** * @param isStolen * @returns The instance for method chaining */ setIsStolen(isStolen: boolean): this; /** * @param doorId * @param deleteDoor Refer to {@link eDoorId} * @returns The instance for method chaining */ setDoorBroken(doorId: int, deleteDoor: boolean): this; private _task?; get task(): VehicleTask; } //# sourceMappingURL=Vehicle.d.ts.map