🧰Functions

The function created by exports is to make it easier for you to use several functions in kc_garage

👮 Job Impound

  • You can use in client

exports['kc_garage']:JobsImpound(ImpoundName, Vehicle, Identifier)
Code Block
Value
Explanation

ImpoundName

Impound key name

Your impound code name

Vehicle

Vehicle ID

you can use GetVehiclePedIsIn()

Identifier

Identifier

Player identifier

Example:

RegisterCommand('JobsImpound', function()
  local playerCoords = GetEntityCoords(PlayerPedId())
  local vehicle = GetClosestVehicle(playerCoords, 5.0)
  local playerData = ESX.GetPlayerData()
  exports['kc_garage']:JobsImpound('JobsImpound', vehicle, playerData.identifier)
end)

🅿️ Get Parking Zone

  • You can use this to find out whether the player is in the garage zone or not

exports['kc_garage']:IsParkingZone()

Example:

🗒️ Get Garage Name

  • You can get garages or impounds name in client or server

Code Block
Value
Explanation

GaragesKeyName

Garage key name

Your garage code name

ImpoundsKeyName

Impound key name

Your impound code name

Example for find garages name:

Example for find impounds name:

Last updated