Exports
Server-Side:
exports.pickle_bailbounty:AddBailToRegistry(bail)
--Adds bail entry into registry.
bail: {
source = GetSourceFromIdentifier(bail.identifier),
identifier = bail.identifier, -- Character Identifier
name = bail.name, -- Character Name
image = bail.image or "NO_IMAGE", -- Image
issuer = bail.issuer, -- Issuer identifier
reward = bail.reward, -- Bail amount
description = bail.description, -- Description of bail recipient
startdate = bail.startdate, -- Recommended: os.time()
completiondate = bail.completiondate, -- Recommended: os.time() + (86400 * days)
nextcompliance = bail.nextcompliance, -- Recommended: os.time() + 86400
lastcompliance = bail.lastcompliance, -- Recomended: os.time()
status = bail.status or "compliant",
sentence = bail.sentence or 0,
}
exports.pickle_bailbounty:RemoveBailFromRegistry(identifier)
-- Removes identifier's bail entry from the registry.
exports.pickle_bailbounty:GetBailStatus(identifier)
-- Gets identifier's bail entry from the registry.
exports.pickle_bailbounty:AddBountyToRegistry(bounty)
-- Removes identifier's bail entry from the registry.
bounty: {
target = bounty.target, -- Character Identifier
targetname = bounty.targetname, -- Character Name
image = bounty.image or "NO_IMAGE", -- Image
issuer = bounty.issuer, -- Issuer Identifier
reward = bounty.reward, -- Bounty reward
description = bounty.description, -- Description of target
risk = bounty.risk, -- Value must be 1-3. 1 is low, 2 is medium, 3 is high
sentence = bounty.sentence or 0, -- This will auto-sentence the captured bounty to prison if above 0.
}
exports.pickle_bailbounty:RemoveBountyFromRegistry(identifier)
-- Removes identifier's bounty entry from the registry.
exports.pickle_bailbounty:GenerateNPCBounty()
-- Adds a auto-generated NPC bounty to the registry.
exports.pickle_bailbounty:GetPlayerCurrentBounty(source)
-- Returns what bounty a player is actively chasing.
exports.pickle_bailbounty:CancelBounty(identifier, removeEntry)
-- Cancels the identifier's bounty if in-progress.
identifier: characterIdentifier,
removeEntry: bool (default: false)
exports.pickle_bailbounty:IsPlayerBountyHunter(source)
-- Returns if the player is a on-duty bounty hunter.
Last updated