โฌ…๏ธExports

Connect To Channel

---@param channelId number
---@code string|nil
---@name string|nil
---@showCode boolean|nil
---@blipColor number|nil
---@return invalid_channel_id|nil
local retval = exports['0r-gpsv2']:ConnectToChannel({
    channnelId = 12345, -- Replace with the actual channel ID you want to connect to
    code = 'ABC123', -- Optional: Replace with the code you want to use
    name = 'No.1', -- Optional: Replace with the name you want to use
    showCode = true, -- Optional: Set to true if you want to show the code in the GPS
    blipColor = 1 -- Optional: Replace with the color you want for the blip
})

Disconnect From Channel

---@return nil
exports['0r-gpsv2']:DisconnectFromChannel()

Follow Member

---@param number
---@return nil
exports['0r-gpsv2']:FollowMember(12345)

Unfollow Member

---@return nil
exports['0r-gpsv2']:UnfollowMember()

Is GPS On

---@return boolean
local retval = exports['0r-gpsv2']:IsGPSOn()

GetChannelID

---@return string|nil
local retval = exports['0r-gpsv2']:GetChannelId()

Last updated