bug fixes
labkit/presses now are tabled in server side and has checks to see if you have an active table before proceeding/ gives back item if headpop or crash
This commit is contained in:
1 parent
c2fddd6144
commit
cdd26ab465
10 files changed
+149
-64
No files matched your search
@@ -40,6 +40,7 @@ local check, loc = lib.callback.await('md-drugs:client:setpress', src, v.data)
|
||||
})
|
||||
end
|
||||
end
|
||||
print(json.encode(activePresses))
|
||||
end)
|
||||
end
|
||||
|
||||
@@ -237,4 +238,15 @@ RegisterServerEvent('md-drugs:server:stampblue', function(num)
|
||||
else
|
||||
Notifys('You Dont Have Unstamped blue Pills', 'error')
|
||||
end
|
||||
end)
|
||||
|
||||
AddEventHandler('playerDropped', function()
|
||||
local src = source
|
||||
local Player = getPlayer(src)
|
||||
for k, v in pairs (activePresses) do
|
||||
if v.ownerid == Player.PlayerData.citizenid then
|
||||
table.remove(activePresses, k)
|
||||
AddItem(src, v.get, 1)
|
||||
end
|
||||
end
|
||||
end)
|
||||
Reference in new issue
Block a user