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
        • Config
          • Missions
        • Shop
          • Workbench
          • Supplier
        • Parts
      • Exports
        • Server
        • Client
      • Troubleshoot
        • FAQ
    • 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
  • TrimPlate
  • IsPlayerEmployee
  • RegisterVehicleData
  • SaveVehicleData
  • UpdateVehicleDataPlate
  1. Resources
  2. T1GER Mechanic
  3. Exports

Server

Server-sided 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.


RegisterVehicleData

Registers mileage, core- and service-parts data to database in t1ger_vehicledata table for a given plate. This can be used when purchasing a car from vehicleshop or using command to turn a vehicle into an owned one.

exports["t1ger_mechanic"]:RegisterVehicleData(plate)

Parameters

  • plate(string) – The plate of the vehicle.


SaveVehicleData

Saves the vehicle's vehicle-data for given vehicle entity in t1ger_vehicledata table in database. Useful if u want to force save a vehicle's vehicle-data.

exports["t1ger_mechanic"]:SaveVehicleData(vehicle)

Parameters

  • vehicle(integer) – The vehicle entity handle

Returns

  • boolean – true if saved succesfully, otherwise false.


UpdateVehicleDataPlate

Updates a given plate in the t1ger_vehicledata table to a new plate. Usefull if using fake plates or plate changer scripts and so on.

exports["t1ger_mechanic"]:UpdateVehicleDataPlate(currentPlate, newPlate)

Parameters

  • currentPlate(string) – The current plate to be replaced by newPlate

  • newPlate(string) – The new plate to replace with the currentPlate

Returns

  • boolean – true if updated succesfully, otherwise false.


PreviousExportsNextClient

Last updated 21 days ago