🧾
docs.scriptsfivem.com
CtrlK
  • 👋Welcome
  • 🧾Resources
    • 📱sfphone
      • Installations
      • Config
      • Exports
      • Open phone
    • 🚗sfracing
      • Installations
      • Config
      • Exports
    • 💵sfbanking
      • Installations
      • Config
      • Exports
    • 💻sfctab
      • Installations
      • Config
      • Open tablet
      • Exports // Triggers
    • 🛠️sfcrafting
      • Installations
      • Config
      • Open crafting table
    • 🔔sfnotify
      • Installations
      • Config
      • Exports // Triggers
    • 👷‍♂️sfjob
      • Installations
      • Config
      • Exports // Triggers
    • 💻sfjobtab
      • Installations
      • Config
      • Triggers
    • ⌚sfgps
      • Installations
      • Config
      • Exports
    • 👮sfpolice
      • Installations
      • Config
      • Exports/Triggers
    • 🏥sfems
      • Installations
      • Config
      • Exports/Triggers
    • 🅿️sfgarages
      • Installations
      • Config
      • Exports/Triggers
    • 🏛️sfdoj
      • Installations
      • Config
      • Exports/Triggers
    • 🎣sffishing
      • Installations
      • Config
      • Triggers
    • 🚗sfvehicleshop
      • Installations
      • Config
    • 🔧sfmechanic
      • Installations
      • Config
      • Exports/Triggers
    • 🏰sfjail
      • Installations
      • Config
      • Exports
    • 🔑sfkeys
      • Exports
Powered by GitBook
On this page
  • TRIGGERS Lua code examples for Client Side
  • EXPORTS Lua code examples for Client Side
  1. 🧾Resources
  2. 🅿️sfgarages

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

PreviousConfigNextsfdoj

Last updated 1 year ago