Client-side

List of client-side exports.

isInGarageZone


exports['op-garages']:isInGarageZone()

Return boolean value

Example Usage:

RegisterCommand('isingaragezone', function()
    local isInGarageZone = exports['op-garages']:isInGarageZone()
    print(isInGarageZone)
end)

openGarageIfInZone


exports['op-garages']:openGarageIfInZone()

Open garage if player is inside zone of some garage.

This is useful if you want to integrate radial menu into the script.

Example Usage:

RegisterCommand('openisingaragezone', function()
    local isInGarageZone = exports['op-garages']:isInGarageZone()
    if isInGarageZone then
        exports['op-garages']:openGarageIfInZone()
    end
end)

OpenGarageHere


This event will Open Garage or Hide and Save Current player Vehicle.

  • coords: vec4

  • disablePreview: boolean

Example Usage:

ClientaddTempPrivateGarage


  • Label: string

  • Type: car | air | sea

  • Coords: table

    • CenterOfZone: vec4

    • AccessPoint: vec4 (Only whe Type: sea | air)

  • Radius: number

  • PrivatePlayersList: object

    • id: string (Player CitizenID or Char)

    • name: string(Player Name and Lastname, you can leave it "")

  • cb: function

This export have callback which returns created garage id.

Example Usage:

ClientremoveTempPrivateGarage


  • Index: number

Example Usage:

ClientaddTempGangGarage


  • Label: string

  • Type: car | air | sea

  • Coords: table

    • CenterOfZone: vec4

    • AccessPoint: vec4 (Only whe Type: sea | air)

  • Radius: number

  • GangName: string

  • GangGrade: number

  • Mode: string: owned | spawner

  • zPoints: table | nil

  • onespawn: vec4 | nil

  • cb: function

This export have callback which returns created garage id.

Example Usage:

ClientremoveTempGangGarage


  • Index: number

Example Usage:

Last updated