Client
Client Exports
--- Retrieves the player's current data, including gender, weapon, coordinates, and vehicle details.
--- @return table - A table containing the following keys:
--- - sex (string): The gender of the player.
--- - gun (string): The name of the weapon the player is holding (if any).
--- - ped (integer): The player's ped ID.
--- - coords (table): A vec2 table with the player's rounded x and y coordinates.
--- - name (string): The player's name.
--- - GetVehicleIn (integer): The vehicle ID the player is currently in, or 0 if not in a vehicle.
--- - isInVehicle (boolean): Whether the player is in any vehicle.
--- - source (integer): The player's server ID.
exports['l2s-dispatch']:GetPlayerData()--- Retrieves various data for the specified vehicle.
--- This function fetches the vehicle's name, plate, class, color, and network ID.
--- @param vehicle integer - The vehicle entity ID to retrieve data for.
--- @return table - A table containing the following keys:
--- - name (string): The vehicle's name.
--- - plate (string): The vehicle's plate number.
--- - class (string): The vehicle's class (e.g., Sedan, SUV, etc.).
--- - color (string): The vehicle's color.
--- - id (integer): The vehicle's network ID.
exports['l2s-dispatch']:GetVehicleData(vehicle)Last updated