Exports/Triggers

TRIGGERS Lua code examples for Client Side

local type_garage = "vehicle" -- options: "vehicle", "boat", "plate"
TriggerEvent("sfgarages:openGarage", type_garage) -- open ems tablet
TriggerEvent("nuifix") -- if the NUI breaks.

EXPORTS Lua code examples for Client Side

e.g. Useful for radial menus.

local type_garage = "vehicle" -- options: "vehicle", "boat", "plate"
local result = exports["sfgarages"]:searchGarage(type_garage)
return result -- return true or false

Last updated