Documentation › Hunting System › Integrations › Exports

Exports

Server and client exports for other resources.

Server

Export Returns
HasHuntingLicense(src) true / false
GetHuntingLicense(src) { valid, expiresAt, provider }
GiveHuntingLicense(src, days) expiresAt (0 = permanent) or nil
RevokeHuntingLicense(src) true / false
GetHunterLevel(src) level 1 – 25
IsLegendaryActive() true while a legend roams
lua
local lic = exports.smilescripts_hunting:GetHuntingLicense(source)
if lic.valid then
    print(lic.expiresAt > 0 and os.date('%d.%m.%Y', lic.expiresAt) or 'permanent')
end

Client

Export Does
OpenHuntingTablet(tab) Opens the remote tablet on a tab
CloseHuntingTablet() Closes the tablet