Exports
You are provided a few exports so you can customize this script to your liking, whether implementing your own system to install the matrix boards onto the vehicles to using an item to open the menu, etc.
Server/Client | Export | Description | Parameters | Return Type |
---|---|---|---|---|
Client | CanOpenMatrixMenu | Returns true/false whether the menu can be opened by the player | N/A | Boolean |
Client | GetVehicleConfig | Gets the vehicle config for the given hash. If nil, no config exists for given model | Model | VehicleConfig? |
Client | InstallMatrixOnVehicle | Installs the matrix boards onto the given vehicle. True if successful | Vehicle Handle | Boolean |
Client | UninstallMatrixBoardFromVehicle | Uninstalls the matrix board from the given vehicle. True if successful | Vehicle Handle | Boolean |
Client | SendMatrixBoardMessage | Sends matrix board UI message to the given vehicle | Vehicle Handle, MatrixUIData, boardIndex? | nil |
Client | OpenMenu | Opens the matrix menu for the current vehicle | N/A | nil |