4 Commits

Author SHA1 Message Date
Jim Shield
2eff1996c2 Version bump
`3.0` - `3.0.01`
2025-05-07 23:33:10 +01:00
Jim Shield
29b3b2ffb9 Hopefully fix the error when charging
I think if you had alot of players, it would overload itself and slip in a nil value when checking for player info

This checks if it is a real source number being sent and also adds a slightly delay to help load easier
2025-05-07 15:58:03 +01:00
Jim Shield
5cc7b60a1f fix discord bot yml 2025-05-01 13:37:46 +01:00
Jim Shield
41e146e35a add gitbot yml 2025-05-01 00:19:37 +01:00
4 changed files with 24 additions and 4 deletions

17
.github/workflows/notify-discord.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: Discord Commit Notifier
on:
push:
branches:
- '*' # triggers on all branches
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Discord Commits
uses: Sniddl/discord-commits@v1.6
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
template: "avatar-with-link"
include-extras: true

View File

@@ -1,6 +1,6 @@
name "Jim-Payments"
author "Jimathy"
version "3.0"
version "3.0.01"
description "Payment Script By Jimathy"
fx_version "cerulean"
game "gta5"

View File

@@ -21,8 +21,11 @@ registerCommand("cashregister", {
createCallback(getScript()..":MakePlayerList", function(source)
local onlineList = {}
for _, v in pairs(GetPlayers()) do
local Player = getPlayer(v)
onlineList[#onlineList+1] = { value = tonumber(v), text = "["..v.."] - "..Player.name }
if v ~= nil or type(v) ~= "number" then
local Player = getPlayer(v)
onlineList[#onlineList+1] = { value = tonumber(v), text = "["..v.."] - "..Player.name }
Wait(10)
end
end
return onlineList
end)

View File

@@ -1 +1 @@
3.0
3.0.01