1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-06-26 02:44:43 +02:00
parent d4f745088d
commit a3463ec82a
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@ Config = {}
Config.Debug = false
Config.Amount = 250
Config.Amount = 0
Config.Printers = {
kayas = {--- Job Name

View file

@ -24,7 +24,7 @@ RegisterNetEvent('moon-printers:server:SavePaperDocument', function(url)
if validexts[extension] then
info.url = url
if cash >= Config.Amount then
if Player.Functions.RemoveItem('tosti', 1) then
if Player.Functions.RemoveItem('paper', 1) then
Player.Functions.AddItem('printerdocument', 1, nil, info)
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['printerdocument'], "add")
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['tosti'], "remove")