mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-08-17 06:16:02 +01:00
Re-add terminal item and info
This commit is contained in:
@@ -45,14 +45,19 @@ If you enable Config.General.Usebzzz then the script will use `bzzz_terminal` to
|
|||||||
- `/cashregister`
|
- `/cashregister`
|
||||||
- `/terminal`
|
- `/terminal`
|
||||||
|
|
||||||
This payment terminal is available as a Free Package from https://bzzz.tebex.io/package/5551076
|
This is also available as an item users can use by adding this to your shared items
|
||||||
|
```lua
|
||||||
|
terminal = { name = 'terminal', label = 'Wireless Terminal', weight = 5000, ["type"] = "item", ["image"] = 'terminal.png', unique = true, useable = true, ["shouldClose"] = true, ["combinable"] = nil, description = '' },
|
||||||
|
```
|
||||||
|
|
||||||
|
This payment terminal prop is available as a Free Package from https://bzzz.tebex.io/package/5551076
|
||||||
|
|
||||||
---
|
---
|
||||||
## 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
|
||||||
- Naviage to `[qb] > qb-core / shared / items.lua` and add this line
|
- Naviage to `[qb] > qb-core / shared / items.lua` and add this line
|
||||||
```lua
|
```lua
|
||||||
payticket = { name = "payticket", label = "Receipt", weight = 10, type = "item", image = "ticket.png", unique = false, useable = false, shouldClose = false, description = "Cash these in at the bank!" },
|
payticket = { name = "payticket", label = "Receipt", weight = 10, type = "item", image = "ticket.png", unique = false, useable = false, shouldClose = false, description = "Cash these in at the bank!" },
|
||||||
```
|
```
|
||||||
|
|
||||||
- Add the ticket image to your inventory script:
|
- Add the ticket image to your inventory script:
|
||||||
|
|||||||
BIN
images/terminal.png
Normal file
BIN
images/terminal.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
@@ -19,6 +19,12 @@ onResourceStart(function()
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if Items["terminal"] then
|
||||||
|
createUseableItem("terminal", function(source, item)
|
||||||
|
TriggerClientEvent(getScript()..":client:Charge", source, {}, true)
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
createCallback(getScript()..":MakePlayerList", function(source)
|
createCallback(getScript()..":MakePlayerList", function(source)
|
||||||
local onlineList = {}
|
local onlineList = {}
|
||||||
for _, v in pairs(GetPlayers()) do
|
for _, v in pairs(GetPlayers()) do
|
||||||
|
|||||||
Reference in New Issue
Block a user