Client-side
List of client-side exports.
IMPORTANT: This Exports work only above Version 2.5.0 of OP Garages Script
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:
vec4disablePreview:
boolean
Example Usage:
ClientaddTempPrivateGarage
Label:
stringType:
car | air | seaCoords:
tableCenterOfZone:
vec4AccessPoint:
vec4(Only whe Type: sea | air)
Radius:
numberPrivatePlayersList:
objectid:
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:
stringType:
car | air | seaCoords:
tableCenterOfZone:
vec4AccessPoint:
vec4(Only whe Type: sea | air)
Radius:
numberGangName:
stringGangGrade:
numberMode:
string: owned | spawnerzPoints:
table | nilonespawn:
vec4 | nilcb:
function
This export have callback which returns created garage id.
Example Usage:
ClientremoveTempGangGarage
Index:
number
Example Usage:
Last updated