Skip to content

Commit

Permalink
Delay removal of ClientsideDarkRPVars on disconnect by 10 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Srlion authored and FPtje committed Dec 16, 2024
1 parent e789a4f commit 9574a09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gamemode/modules/base/cl_entityvars.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ timer.Simple(0, fp{RunConsoleCommand, "_sendDarkRPvars"})

net.Receive("DarkRP_DarkRPVarDisconnect", function(len)
local userID = net.ReadUInt(16)
DarkRP.ClientsideDarkRPVars[userID] = nil
timer.Simple(10, function()
DarkRP.ClientsideDarkRPVars[userID] = nil
end)
end)

--[[---------------------------------------------------------------------------
Expand Down

0 comments on commit 9574a09

Please sign in to comment.