mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-08-19 07:16:03 +01:00
Merge pull request #31 from UwUway/main
add bzz terminal support and command disabling
This commit is contained in:
@@ -35,6 +35,15 @@ ensure [vehicles]
|
|||||||
ensure [jim]
|
ensure [jim]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
## BZZ Terminal Instructions
|
||||||
|
Free Package https://bzzz.tebex.io/package/5551076
|
||||||
|
|
||||||
|
Stream the prop and add the emote that is provided to rpemotes or dpemotes
|
||||||
|
```lua
|
||||||
|
['terminal'] = {['name'] = 'terminal', ['label'] = 'Wireless Terminal', ['weight'] = 5000, ["type"] = "item", ["image"] = 'terminal.png', ['unique'] = true, ['useable'] = true, ["shouldClose"] = true, ["combinable"] = nil, ['description'] = ''},
|
||||||
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
## Item installation
|
## Item installation
|
||||||
- To make use of the ticket reward system for workers you need to add the ticket item to your shared items lua
|
- To make use of the ticket reward system for workers you need to add the ticket item to your shared items lua
|
||||||
|
|||||||
@@ -95,6 +95,9 @@ RegisterNetEvent('jim-payments:client:Charge', function(data, outside)
|
|||||||
if not dialog.citizen or not dialog.price then return end
|
if not dialog.citizen or not dialog.price then return end
|
||||||
TriggerServerEvent('jim-payments:server:Charge', dialog.citizen, dialog.price, dialog.billtype, data.img, outside, gang)
|
TriggerServerEvent('jim-payments:server:Charge', dialog.citizen, dialog.price, dialog.billtype, data.img, outside, gang)
|
||||||
end
|
end
|
||||||
|
if config.Usebzzz then
|
||||||
|
ExecuteCommand("e c")
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
RegisterNetEvent('jim-payments:client:PolCharge', function()
|
RegisterNetEvent('jim-payments:client:PolCharge', function()
|
||||||
@@ -186,3 +189,7 @@ AddEventHandler('onResourceStop', function(r) if r ~= GetCurrentResourceName() t
|
|||||||
for i = 1, #Till do DeleteEntity(Till[i]) end
|
for i = 1, #Till do DeleteEntity(Till[i]) end
|
||||||
unloadModel(GetEntityModel(BankPed)) DeletePed(BankPed)
|
unloadModel(GetEntityModel(BankPed)) DeletePed(BankPed)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
RegisterNetEvent('terminal', function()
|
||||||
|
TriggerEvent('animations:client:EmoteCommandStart', {'terminal'})
|
||||||
|
end)
|
||||||
@@ -38,6 +38,9 @@ Config = {
|
|||||||
`U_F_M_CasinoShop_01`,
|
`U_F_M_CasinoShop_01`,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
usebzzz = false, -- enable if you're using the prop from bzzz
|
||||||
|
Enablecommand = true, -- Enables the cashregister command
|
||||||
|
|
||||||
PhoneBank = false, -- Set this to false to use the popup payment system FOR CARD/BANK PAYMENTS instead of using phone invoices
|
PhoneBank = false, -- Set this to false to use the popup payment system FOR CARD/BANK PAYMENTS instead of using phone invoices
|
||||||
-- This doesn't affect Cash payments as they by default use confirmation now
|
-- This doesn't affect Cash payments as they by default use confirmation now
|
||||||
-- This is helpful for phones that don't support invoices well
|
-- This is helpful for phones that don't support invoices well
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
name "Jim-Payments"
|
name "Jim-Payments"
|
||||||
author "Jimathy"
|
author "Jimathy"
|
||||||
version "v2.8.5"
|
version "v2.8.6"
|
||||||
description "Payment Script By Jimathy"
|
description "Payment Script By Jimathy"
|
||||||
fx_version "cerulean"
|
fx_version "cerulean"
|
||||||
game "gta5"
|
game "gta5"
|
||||||
|
|||||||
@@ -13,7 +13,13 @@ AddEventHandler('onResourceStart', function(resource) if GetCurrentResourceName(
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
QBCore.Commands.Add("cashregister", Loc[Config.Lan].command["cash_reg"], {}, false, function(source) TriggerClientEvent("jim-payments:client:Charge", source, {}, true) end)
|
|
||||||
|
CreateThread(function()
|
||||||
|
if Config.Enablecommand then
|
||||||
|
QBCore.Commands.Add("cashregister", Loc[Config.Lan].command["cash_reg"], {}, false, function(source) TriggerClientEvent("jim-payments:client:Charge", source, {}, true) end)
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
QBCore.Commands.Add("polcharge", Loc[Config.Lan].command["charge"], {}, false, function(source) TriggerClientEvent("jim-payments:client:PolCharge", source) end)
|
QBCore.Commands.Add("polcharge", Loc[Config.Lan].command["charge"], {}, false, function(source) TriggerClientEvent("jim-payments:client:PolCharge", source) end)
|
||||||
|
|
||||||
RegisterServerEvent('jim-payments:Tickets:Give', function(data, biller, gang)
|
RegisterServerEvent('jim-payments:Tickets:Give', function(data, biller, gang)
|
||||||
@@ -247,3 +253,14 @@ QBCore.Functions.CreateCallback('jim-payments:MakePlayerList', function(source,
|
|||||||
end
|
end
|
||||||
cb(onlineList)
|
cb(onlineList)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
CreateThread(function()
|
||||||
|
if Config.Usebzzz then
|
||||||
|
QBCore.Functions.CreateUseableItem('terminal', function(source, item)
|
||||||
|
local src = source
|
||||||
|
TriggerClientEvent('terminal', src)
|
||||||
|
TriggerClientEvent("jim-payments:client:Charge", source, {}, true)
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
end)
|
||||||
Reference in New Issue
Block a user