Manager responsible for fetching, caching, and updating Vehicle structures.
Signature:
declare class VehicleManager#Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Creates an instance of VehicleManager. |
#Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
Collection<string, Vehicle> |
Collection cache of spawned vehicles in the server, keyed by their license plate. |
#Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Fetches all active vehicles currently spawned in the game server. Updates the vehicle cache. | ||
|
Re-synchronizes the cache with the raw vehicle list from the API. Emits vehicleAdd, vehicleRemove, and vehicleUpdate events. |