- added timeout function. any event you trigger puts a 3 second hold on the rest of the script for that player to ensure no injectors can endlessly spam and get things. if triggered while on cooldown a console print happens
This commit is contained in:
1 parent
af0efacfe9
commit
d9fcb11930
17 files changed
+83
-58
No files matched your search
+1
-1
@@ -132,7 +132,7 @@ for k, v in pairs(locations.xtcpress) do
|
||||
description = ps.lang('xtc.buySingle', d.cash),
|
||||
action = function()
|
||||
if not ps.progressbar(ps.lang('xtc.buyp'), 4000, 'uncuff') then return end
|
||||
TriggerServerEvent('md-drugs:server:buypress', m)
|
||||
TriggerServerEvent('md-drugs:server:buypress',k, m)
|
||||
end,
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user