API Reference
Exports and events for integrating with Pursuit Scripts.
Server Exports
CalculatePrice
local price = exports['prp-pawn']:CalculatePrice(itemName, count, metadata)
-- Returns: number
IsBlacklisted
local blocked = exports['prp-pawn']:IsBlacklisted(itemName)
-- Returns: boolean
Client Exports
OpenShop
exports['prp-pawn']:OpenShop(shopId)
-- shopId: string (must match a key in Config.Shops)
Events
Server Events
-- Triggered when a sale completes
AddEventHandler('prp-pawn:server:saleComplete', function(source, totalAmount, itemCount)
-- Your custom logic
end)