Events
Server Events
rxhunting:onLicenseBought
Triggered after a hunting license has been bought successfully.
RegisterNetEvent('rxhunting:onLicenseBought', function(playerId) end)
Source of the player that bought the hunting license.
rxhunting:onLicenseRevoked
Triggered after a hunting license has been revoked from a player.
RegisterNetEvent('rxhunting:onLicenseRevoked', function(playerId) end)
Source of the player whose hunting license was revoked.
rxhunting:onItemBought
Triggered after a player buys an item from the hunting shop.
RegisterNetEvent('rxhunting:onItemBought', function(playerId, itemData, amount, price) end)
Source of the player that bought the item.
Data of the item that was bought.
Amount of items purchased.
Total price paid for the items.
rxhunting:onItemSold
Triggered after a player sells an item at the hunting shop.
RegisterNetEvent('rxhunting:onItemSold', function(playerId, itemData, amount, totalPrice) end)
Source of the player that sold the item.
Data of the item that was sold.
Amount of items sold.
Total price received for the items.
rxhunting:onAnimalCut
Triggered after an animal has been cut once.
RegisterNetEvent('rxhunting:onAnimalCut', function(playerId, animalData, cutWeapon) end)
Source of the player that cut the animal.
Data of the animal that has been cut.
Data of the weapon used to cut the animal.
rxhunting:onAnimalKilled
Triggered after an animal has been killed.
RegisterNetEvent('rxhunting:onAnimalKilled', function(playerId, animalData) end)
Source of the player that killed the animal.
Data of the animal that has been killed.
rxhunting:onAnimalSpawned
Triggered when an animal is spawned in a hunting zone.
RegisterNetEvent('rxhunting:onAnimalSpawned', function(animalData, zoneName, netId) end)
Data of the animal that was spawned.
Name of the zone where the animal spawned.
Network ID of the spawned animal entity.
rxhunting:onXpGained
Triggered when a player gains XP.
RegisterNetEvent('rxhunting:onXpGained', function(playerId, xpGained, newTotalXP, hunter) end)
Source of the player that gained XP.
Amount of XP gained.
New total XP after the gain.
Hunter object with updated data.
rxhunting:onLevelUp
Triggered when a player levels up their hunter.
RegisterNetEvent('rxhunting:onLevelUp', function(playerId, newLevel, hunter) end)
Source of the player that leveled up.
The new hunter level achieved.
Hunter object with updated data.
rxhunting:onMissionClaimed
Triggered when a player claims mission rewards.
RegisterNetEvent('rxhunting:onMissionClaimed', function(playerId, missionKey, rewards) end)
Source of the player that claimed the mission.
Key identifier of the claimed mission.
Table containing the rewards (xp, money, items).
rxhunting:onBaitPlaced
Triggered when a player places a bait.
RegisterNetEvent('rxhunting:onBaitPlaced', function(playerId, baitId, baitData) end)
Source of the player that placed the bait.
Database ID of the placed bait.
Data of the placed bait (item, coords).
rxhunting:onBaitRemoved
Triggered when a bait is removed (expired or max attracts reached).
RegisterNetEvent('rxhunting:onBaitRemoved', function(baitId, baitData, reason) end)
Database ID of the removed bait.
Data of the removed bait.
Reason for removal ("expired" or "max_attracts").
rxhunting:onBaitAttracted
Triggered when a bait attracts an animal.
RegisterNetEvent('rxhunting:onBaitAttracted', function(baitId, animalKey, playerId) end)
Database ID of the bait that attracted the animal.
Key identifier of the attracted animal.
Source of the nearby player.
rxhunting:onVehicleRented
Triggered when a player rents a vehicle.
RegisterNetEvent('rxhunting:onVehicleRented', function(playerId, rentalName, vehicleData, totalCost) end)
Source of the player that rented the vehicle.
Name of the rental location.
Data of the rented vehicle.
Total cost paid (rental + deposit).
rxhunting:onVehicleReturned
Triggered when a player returns a rented vehicle.
RegisterNetEvent('rxhunting:onVehicleReturned', function(playerId, rentalName, vehicleData, depositReturned) end)
Source of the player that returned the vehicle.
Name of the rental location.
Data of the returned vehicle.
Amount of deposit returned to the player.
Client Events
rxhunting:onZoneEntered
Triggered when the player enters a hunting zone.
RegisterNetEvent('rxhunting:onZoneEntered', function(zoneName) end)
Name of the hunting zone that was entered.
rxhunting:onZoneLeft
Triggered when the player leaves a hunting zone.
RegisterNetEvent('rxhunting:onZoneLeft', function(zoneName) end)
Name of the hunting zone that was left.
