Update commands.lua

This commit is contained in:
Andyyy7666
2025-01-19 18:08:20 +01:00
parent 1547d310eb
commit fb708cc7e7

View File

@@ -54,7 +54,7 @@ lib.addCommand("setmoney", {
duration = 10000 duration = 10000
}) })
if not source then return end if not source or source == 0 then return end
TriggerClientEvent("chat:addMessage", source, { TriggerClientEvent("chat:addMessage", source, {
color = {50, 100, 235}, color = {50, 100, 235},
multiline = true, multiline = true,
@@ -96,7 +96,7 @@ lib.addCommand("setjob", {
duration = 10000 duration = 10000
}) })
if not source then return end if not source or source == 0 then return end
TriggerClientEvent("chat:addMessage", source, { TriggerClientEvent("chat:addMessage", source, {
color = {50, 100, 235}, color = {50, 100, 235},
multiline = true, multiline = true,
@@ -155,7 +155,7 @@ lib.addCommand("setgroup", {
return return
end end
if not source then return end if not source or source == 0 then return end
TriggerClientEvent("chat:addMessage", source, { TriggerClientEvent("chat:addMessage", source, {
color = {50, 100, 235}, color = {50, 100, 235},
multiline = true, multiline = true,
@@ -206,7 +206,7 @@ lib.addCommand("pay", {
} }
} }
}, function(source, args, raw) }, function(source, args, raw)
if not source then return end if not source or source == 0 then return end
local player = NDCore.getPlayer(source) local player = NDCore.getPlayer(source)
local targetPlayer = NDCore.getPlayer(args.target) local targetPlayer = NDCore.getPlayer(args.target)