exports["EasyGPS"]:AddChannel(array)
If false is returned, the code is interrupted and the channel is not added.
If it is set to true, the complete code will continue and the channel will be added.
The index of the channel in the array (int)
Deactivate a channel from settings
exports["EasyGPS"]:DeactivateChannel(key)
If false is returned, the code is interrupted and the channel is not deactivated.
If it is set to true, the complete code will continue and the channel will be deactivated.
Modify a channel from settings
exports["EasyGPS"]:ModifyChannel(key, array)
If false is returned, the code is interrupted and the channel is not changed.
If it is set to true, the complete code will continue and the channel will be changed.
Get all channels from settings
Called when the blip of an entity is set or removed. (Listed after all checks)
{
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
}