mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2026-11-10 13:57:18 +01:00
fix(runcode): timeout sweep and ped-money-drops cleanup (#231)
* fix(runcode): use pairs for codes timeout sweep Signed-off-by: matti.bat <[email protected]> * fix(ped-money-drops): match entityRemoved cleanup key Signed-off-by: matti.bat <[email protected]> --------- Signed-off-by: matti.bat <[email protected]>
This commit is contained in:
@@ -144,7 +144,7 @@ CreateThread(function()
|
||||
while true do
|
||||
Wait(100)
|
||||
|
||||
for k, v in ipairs(codes) do
|
||||
for k, v in pairs(codes) do
|
||||
if GetGameTimer() > v.timeout then
|
||||
source = nil
|
||||
returnCode(k, '', 'Timed out waiting on the target client.')
|
||||
|
||||
Reference in New Issue
Block a user