Fishing
Exports
All client- & serversided exports included within this script. Exports provide callable functions that allow other resources to interact with this script's functionality.
If additional exports are required for your implementation, please submit a formal request through our ticketing system on the official Discord server.
Server Exports
GiveFishingLicense
Gives a fishing license to a player.
exports['RxFishing']:GiveFishingLicense(playerId) end)
playerId
number required
Source of the player that should receive the fishing license.
RemoveFishingLicense
Removes a fishing license from a player.
exports['RxFishing']:RemoveFishingLicense(playerId) end)
playerId
number required
Source of the player where the fishing license should be removed.
AddFisherXP
Adds XP to a fisher.
exports['RxFishing']:AddFisherXP(playerId, xp)
playerId
number required
Source of the player that should receive XP.
xp
number required
Amount of XP to add to the fisher.
GetFisherLevel
Gets the current level of a fisher.
exports['RxFishing']:GetFisherLevel(playerId)
playerId
number required
Source of the player to get the level from.
GetFisherXP
Gets the current XP of a fisher.
exports['RxFishing']:GetFisherXP(playerId)
playerId
number required
Source of the player to get the XP from.
Log
Sends a log to Discord webhook.
exports['RxFishing']:Log(title, fields, color, webhook)
title
string required
Title of the Discord embed.
fields
table required
Array of field objects with name, value, and inline properties.
color
number required
Decimal color code for the embed.
webhook
string required
Discord webhook URL to send the log to.
Client Exports
No client-sided exports available at this time.
