a library to speed up the development of Fivem scripts and frameworks
fivem-ts - Documentation v0.7.5 • Docs
fivem-ts - Documentation v0.7.5 / Client / VehicleWindowCollection
Represents a collection of windows for a specific vehicle.
new VehicleWindowCollection(
owner):VehicleWindowCollection
• owner: Vehicle
client/models/VehicleWindowCollection.ts:14
getAreAllWindowsIntact():boolean
boolean
client/models/VehicleWindowCollection.ts:26
getOwner():Vehicle
client/models/VehicleWindowCollection.ts:18
getVehicleWindows():Map<VehicleWindowIndex,VehicleWindow>
Map<VehicleWindowIndex, VehicleWindow>
client/models/VehicleWindowCollection.ts:22
getAllWindows():
VehicleWindow[]
Retrieves all window objects in the vehicle.
An array of VehicleWindow objects that exist in the vehicle.
client/models/VehicleWindowCollection.ts:49
getWindow(
index):VehicleWindow
Retrieves the window object associated with a specific index in the vehicle.
• index: VehicleWindowIndex
The index of the window to retrieve.
The window object associated with the specified index.
client/models/VehicleWindowCollection.ts:36
hasWindow(
windowIndex):boolean
Checks if a window of the vehicle exists based on the given window index.
• windowIndex: VehicleWindowIndex
The index of the window to check.
boolean
True if the window exists, false otherwise.
client/models/VehicleWindowCollection.ts:90
rollDownAllWindows():
void
Rolls down all the windows of the vehicle.
void
No return value
client/models/VehicleWindowCollection.ts:67
rollUpAllWindows():
void
Rolls up all windows in the vehicle.
void