Exports
Server Exports
GiveHuntingLicense
Gives a hunting license to a player.
exports['RxHunting']:GiveHuntingLicense(playerId)
Source of the player that should receive the hunting license.
RemoveHuntingLicense
Removes a hunting license from a player.
exports['RxHunting']:RemoveHuntingLicense(playerId)
Source of the player where the hunting license should be removed.
HasHuntingLicense
Checks if a player has a hunting license.
exports['RxHunting']:HasHuntingLicense(playerId)
Source of the player to check for hunting license.
GetHunterLevel
Returns hunter level from a player.
exports['RxHunting']:GetHunterLevel(playerId)
Source of the player to get the hunter level from.
GetHunterXp
Returns hunter xp from a player.
exports['RxHunting']:GetHunterXp(playerId)
Source of the player to get the hunter xp from.
SetHunterLevel
Sets the hunter level for a player directly.
exports['RxHunting']:SetHunterLevel(playerId, level)
Source of the player to set the hunter level for.
The level to set for the hunter.
SetHunterXP
Sets the hunter XP for a player directly.
exports['RxHunting']:SetHunterXP(playerId, xp)
Source of the player to set the hunter XP for.
The XP amount to set for the hunter.
AddHunterXP
Adds XP to a hunter.
exports['RxHunting']:AddHunterXP(playerId, xp)
Source of the player to add XP to.
The amount of XP to add.
GetHunterData
Returns the full hunter data object for a player.
exports['RxHunting']:GetHunterData(playerId)
Source of the player to get hunter data from.
Returns a table containing: level, xp, license, kills, cuts, missions, name or false if player not found.
GetHunterKills
Returns the total number of animal kills for a hunter.
exports['RxHunting']:GetHunterKills(playerId)
Source of the player to get kill count from.
GetHunterCuts
Returns the total number of animal cuts for a hunter.
exports['RxHunting']:GetHunterCuts(playerId)
Source of the player to get cut count from.
GetAllHunters
Returns a table containing all hunters data.
exports['RxHunting']:GetAllHunters()
IsPlayerInZone
Checks if a player is currently inside any hunting zone.
exports['RxHunting']:IsPlayerInZone(playerId)
Source of the player to check zone status for.
GetPlayerZone
Returns the name of the hunting zone a player is currently in.
exports['RxHunting']:GetPlayerZone(playerId)
Source of the player to get zone name from.
Returns the zone name as a string or nil if player is not in any zone.
GetAnimals
Returns a table containing all currently spawned animals.
exports['RxHunting']:GetAnimals()
GetBaits
Returns a table containing all currently placed baits.
exports['RxHunting']:GetBaits()
Client Exports
No client-sided exports available at this time.
