Update charge.lua

fixed spacing
This commit is contained in:
Dude495
2025-10-17 17:59:10 -05:00
committed by GitHub
parent 26cf5f4cc9
commit f723d6f444

View File

@@ -7,17 +7,15 @@ function spawnCustomRegisters()
for i = 1, #v do
local job, gang = v[i].gang and nil or k, v[i].gang and k or nil
local img = v.img or v[i].img
createBoxTarget(
{"CustomRegister: "..k..i, v[i].coords.xyz, 0.47, 0.34, {name="CustomRegister: "..k..i, heading=v[i].coords[4], debugPoly=debugMode, minZ=v[i].coords.z-0.1, maxZ=v[i].coords.z+0.4}},
{{
createBoxTarget({"CustomRegister: "..k..i, v[i].coords.xyz, 0.47, 0.34, {name="CustomRegister: "..k..i, heading = v[i].coords[4], debugPoly = debugMode, minZ = v[i].coords.z-0.1, maxZ = v[i].coords.z+0.4}}, {
{
action = function() TriggerEvent(getScript()..":client:Charge", {job = job, gang = gang, img = img}) end,
icon = "fas fa-credit-card",
label = locale("target","charge"),
job = job,
gang = gang
}},
2.0
)
}
}, 2.0)
if v[i].prop then makeProp({prop = "prop_till_03", coords = v[i].coords+vec4(0,0,1.0, 0.0)}, 1, false) end
end
end
@@ -314,3 +312,4 @@ RegisterNetEvent(getScript()..":client:PayPopup", function(amount, biller, billt
})
end)