Exports & API Reference
Server-Side Exports
addHuntingXp
exports["cas-hunting"]:addHuntingXp(source, amount)Parameter
Type
Description
-- Give player 50 hunting XP
exports["cas-hunting"]:addHuntingXp(source, 50)
-- Reward for completing another job
RegisterNetEvent("myScript:jobCompleted", function()
local src = source
exports["cas-hunting"]:addHuntingXp(src, 25)
end)removeHuntingXp
Parameter
Type
Description
addTraceXp
Parameter
Type
Description
Client-Side Exports
PlaceBait
Parameter
Type
Description
Item Name
Description
Integration Examples
Quest System Integration
Job System Integration
Reputation System Integration
Skill Check Integration
Economy Integration
State Bags
Client State
Server State
Global Variables (Client)
Best Practices
Error Handling
Performance
Validation
Last updated