Below is an event you can use to create a bounty via code should you ever need to.
Create Bounty with UI
local office = "policeBounties" --## This must correlate to a bounty office
-- within the bountyoffices.lua of dirk-bountiesv2
TriggerServerEvent("bountyoffices:openBountyForm", office)
Create Bounty w/o UI
local shouldPay = false
local bountyData = {
OriginOffice = "policeBounties", --## This must correlate to a bountyOffice they have in their bountyoffices.lua
TargetName = "MB MB",
TargetID = "LVL72878",
DOB = "2023-08-15",
Bounty = 5000,
Reason = "adwdadawdawdwadaw",
Description = "12313asdsdw",
Image = "",
Consequences = {
Vehicle = false,
VehicleReleaseFee = 1322,
VehiclePlates = {
["41BZC010"] = "issi7",
["27CXR234"] = "blista",
},
Fine = true,
FineAmount = 1000,
Jail = true,
JailTime = 60,
},
}
TriggerServerEvent("bountyoffice:createNewContract", bountyData, shouldPay)