💰Cash Registers

Obviously you need to be able to bill the players. I used to use another payment system until I realized that you could just bill anyone without their approval so I made my own. This will require ox_lib for some of the UI elements.

You can setup commision ammounts per cash register, giving the employee and the businesses a different % of the money. This is also supporting systems such as OKOKBanking where you have actual statements in your bank. (All this is open source in HapticLib)

Config.PaymentsDistanceCheck = 10 -- Max Distance Between Players to Be Billed

Config.PaymentLang = {
    input = {
        input_id = 'User ID To Bill',
        input_amount = 'How Much To Bill',
    },
    conf = {
        action = "Press Confirm to Pay",
        cancel = "You will not be billed.",
    },
    notif = {
        cancel = "You cancelled the form",
        incomplete = "You did not fill in the full form",
        error = "An Error has occured while you where being billed.",
        invalid = "The user you attempted to bill is invalid",
        distance = "The user you attempted to bill is too far away",
        cancelled = "The user you attempted to bill cancelled the transaction",
        billebroke = "You can't afford this transaction",
        billerbroke = "The user cant afford this transaction",
        billsent = "The user has been sent the bill",
        paid = "Bill has been paid",
    },
}

Config.PaymentStations = {
    [1] = {
        uniqueid = "bs_billin1",
        -- Box Zone/Target Locations
        coords = vector3(-1193.51, -893.68, 13.9),
        heading = 346.66,
        width = 0.3,
        depth = 0.3,
        minz = 13.7,
        maxz = 14.1,
        distance = 2,
        -- Restrictions
        job = "taxi", -- What Job can access it 
        -- Commision Settings
        commision = true, -- If no job set it to false
        commision_woker = 0.5, -- The % of the payment the worker gets
        commision_business = 0.5, -- The % of the payment the business gets
        -- UI Details
        header = "Burgershot Billing Station",
        desc = "Charge Users",
        target_icon = "fas fa-clipboard",
        target_desc = "Cash Register",
        -- Prompting user confirmation
        title = "Confirm your purchase from Burgershot",
    },

}

Last updated