Elevate your FiveM server with B&T Cash Register, a streamlined billing system designed for efficient in-game transactions. This script enhances commercial interactions, making it a must-have for servers focused on immersive gameplay.
[https://www.youtube.com/watch?v=GKHEDW6_lB8]
['receipt'] = {
label = 'Receipt',
weight = 15,
stack = true,
},
Go to es_extended > config.logs.lua Add the following code to Webhooks
CashRegister = 'DISCORD_WEBHOOK'
Example:
Config.DiscordLogs = {
Webhooks = {
default = 'DISCORD_WEBHOOK',
test = 'DISCORD_WEBHOOK',
Chat = 'DISCORD_WEBHOOK',
UserActions = 'DISCORD_WEBHOOK',
Resources = 'DISCORD_WEBHOOK',
Paycheck = 'DISCORD_WEBHOOK',
CashRegister = 'DISCORD_WEBHOOK'
},
Colors = { -- https://www.spycolor.com/
default = 14423100,
blue = 255,
red = 16711680,
green = 65280,
white = 16777215,
black = 0,
orange = 16744192,
yellow = 16776960,
pink = 16761035,
lightgreen = 65309
}
}
To make a cash register work use the following event
TriggerEvent("bt-cashregister:openRegister)
Example:
exports.ox_target:addBoxZone({
coords = vec3(-432.5, 277.06, 83.42),
size = vec3(1.0, 1.0, 1.25),
rotation = 355,
debug = false,
drawSprite = true,
options = {
{
name = 'bennysRegister',
event = 'bt-cashregister:openRegister',
icon = 'fa-solid fa-money-bill',
label = "Cash Register",
groups = {['bennys'] = 0} -- Job Name
}
}
})