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:
@@ -34,5 +34,5 @@ RegisterNetEvent('money:tryPickup', function(entity)
|
||||
end)
|
||||
|
||||
AddEventHandler('entityRemoved', function(entity)
|
||||
safePositions[entity] = nil
|
||||
safePositions[NetworkGetNetworkIdFromEntity(entity)] = nil
|
||||
end)
|
||||
Reference in New Issue
Block a user