Commands & Exports

This section lists all available commands, exports, and events included in the script. You’ll find client-side, server-side, and shared functions designed to help developers integrate, extend, or interact with the system easily within their own scripts or frameworks.


Commands

This section lists all available commands included in the script. Each command is designed to simplify administration, player interaction, or debugging tasks. You’ll find detailed descriptions, usage examples, and permission requirements to help you manage and customize your server efficiently.

Command
Description

/vehicleshop

Open the creator menu to manage and customize your creations.

/opendealership

Open the job menu to view and manage your current player job.


Server Exports

This section provides all available server exports for the script. These functions allow developers to interact with the system from the server side, manage data, trigger actions, and integrate with other resources. Each export includes a clear description and a practical example to simplify its implementation.

GenPlate

The GenPlate export from qs-vehicleshop allows you to generate a random vehicle license plate programmatically. This is useful for ensuring unique and consistent plates when adding vehicles to your server.


How to Use

To generate a new plate, use the following code:

local plate = exports['qs-vehicleshop']:GenPlate()
print("Generated Plate: " .. plate)

The export returns a string containing the generated plate (e.g., TZU58C). Use this string to assign plates to vehicles or manage vehicle-related logic seamlessly in your scripts.