🧾
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
  1. 🧾Resources
  2. ⌚sfgps

Exports

EXPORTS Lua code examples for Server Side

local netIdEntity = 12345 -- e.g. vehicle id server/player source
local name = "trucker" -- example set for "trucker" in config.lua
local nameDisplay = "Stolen vehicle with a GPS transmitter"
exports["sfgps"]:registerOtherBlip(netIdEntity, name, nameDisplay)
local netIdEntity = 12345 -- e.g. vehicle id server/player source
exports["sfgps"]:removeOtherBlip(netIdEntity)
PreviousConfigNextsfpolice

Last updated 1 year ago