forked from Simnation/Main
edit
This commit is contained in:
parent
d4f745088d
commit
a3463ec82a
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ Config = {}
|
||||||
|
|
||||||
Config.Debug = false
|
Config.Debug = false
|
||||||
|
|
||||||
Config.Amount = 250
|
Config.Amount = 0
|
||||||
|
|
||||||
Config.Printers = {
|
Config.Printers = {
|
||||||
kayas = {--- Job Name
|
kayas = {--- Job Name
|
||||||
|
|
|
@ -24,7 +24,7 @@ RegisterNetEvent('moon-printers:server:SavePaperDocument', function(url)
|
||||||
if validexts[extension] then
|
if validexts[extension] then
|
||||||
info.url = url
|
info.url = url
|
||||||
if cash >= Config.Amount then
|
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)
|
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['printerdocument'], "add")
|
||||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['tosti'], "remove")
|
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['tosti'], "remove")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue