Exports (API Communication)

All Functions only accessible at server side

Good to know: You can use all functions as event or manupulation of the logic

Functions

Add channel to settings

exports["EasyGPS"]:AddChannel(array)

Deactivate a channel from settings

exports["EasyGPS"]:DeactivateChannel(key)

Modify a channel from settings

exports["EasyGPS"]:ModifyChannel(key, array)

Get all channels from settings

exports["EasyGPS"]:GetChannels()

Events

OnToggle

Called when the blip of an entity is set or removed. (Listed after all checks)

Channel

{
    IsPlayerAllowedToShow = function (entity, player)
        return true / false
    end,
    IsPlayerAllowedToToggle = function (entity, player, client)
        return true / false
    end,
    Checker = function (ped)
        return entity, true / false
    end,
    Blip = function (blip)
        -- Manage Blip
    end
}

Last updated