T1GER Scripts Documentation
Tebex StoreDiscordYouTubeCFX Forum
  • T1GER Scripts Documentation
  • Quick Links
    • t1ger.net | Shop Now
    • Join Discord
  • Information
    • FiveM Asset Escrow
  • Resources
    • T1GER Mechanic
      • Installation
        • Job Account
          • Setup
          • API
      • Configuration
        • Shop
      • API
        • Exports
        • Events
      • Troubleshoot
    • T1GER Library
      • Installation
        • Inventory
        • Target
        • Garage
        • Society Account
        • Vehicle Properties
      • Configuration
    • T1GER Gang System
      • Installation
      • Gang Garages
      • Product Information
    • T1GER Tuning System
      • Installation
      • API
        • Client
        • Server
      • Troubleshoot
        • Common Issues
        • Error Codes
      • Guides
        • Commands
        • Shops
        • Markers
        • Mod Stations
        • Pricing
        • Mod Orders
        • Vehicle Mods
        • Engine Swaps
        • Nitrous
    • T1GER ATM Robbery
      • Installation
      • API
        • Client
        • Server
      • Troubleshoot
        • Common Issues
        • Error Codes
      • Guides
        • Hacking Minigame
        • Dispatch
    • T1GER Dealerships
  • Free Resources
    • T1GER Keys
    • T1GER Garage
    • T1GER Bank Robbery
    • T1GER Tow Trucker
Powered by GitBook
On this page
  • Server Exports
  • TrimPlate
  • IsPlayerEmployee
  • Client Exports
  • IsVehicleOnCarJack
  • GetVehicleMileage
  • IsPlayerDiagnosing
  1. Resources
  2. T1GER Mechanic
  3. API

Exports

Server- and Client-sided exports

Server Exports

This section provides details on the available server-side exports.

TrimPlate

Trims a given plate.

exports["t1ger_mechanic"]:TrimPlate(plate)

Parameters

  • plate(string) – The vehicle number plate.

Returns

  • string – The trimmed plate.


IsPlayerEmployee

Checks if player is an employee of a specific shop or any shop.

exports["t1ger_mechanic"]:IsPlayerEmployee(src, shopId)

Parameters

  • src(number) – The player source.

  • shopId?(number) – The ID of the shop you check for. If shopId is nil, it checks all shops.

Returns

  • boolean – true if employee, otherwise false.

  • number|nil– If employee, then Shop ID is also returne, otherwise nil.


Client Exports

This section provides details on the available client-side exports

IsVehicleOnCarJack

Returns whether a given vehicle entity is on a car jack or not.

exports["t1ger_mechanic"]:IsVehicleOnCarJack(vehicle)

Parameters

  • vehicle(number) – The vehicle entity handle.

Returns

  • boolean – true if vehicle is on car jack, otherwise false.


GetVehicleMileage

Returns the current mileage of a given vehicle entity.

exports["t1ger_mechanic"]:GetVehicleMileage(vehicle)

Parameters

  • vehicle(number) – The vehicle entity handle.

Returns

  • number– The vehicle mileage


IsPlayerDiagnosing

Returns whether the player is currently diagnosing or inspecting a vehicle.

exports["t1ger_mechanic"]:IsPlayerDiagnosing()

Returns

  • boolean


PreviousAPINextEvents

Last updated 3 days ago