From 9574a09eb17f5a26a18f71025c504e856aff91c7 Mon Sep 17 00:00:00 2001 From: Srlion Date: Sun, 15 Dec 2024 14:54:44 +0200 Subject: [PATCH] Delay removal of ClientsideDarkRPVars on disconnect by 10 seconds --- gamemode/modules/base/cl_entityvars.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gamemode/modules/base/cl_entityvars.lua b/gamemode/modules/base/cl_entityvars.lua index 0ff225c3a..591948521 100644 --- a/gamemode/modules/base/cl_entityvars.lua +++ b/gamemode/modules/base/cl_entityvars.lua @@ -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) --[[---------------------------------------------------------------------------