From 214e8ad97818d54f66f593eb5f180578742d08c9 Mon Sep 17 00:00:00 2001 From: Kuzkay <31634013+Kuzkay@users.noreply.github.com> Date: Mon, 30 Dec 2019 22:05:06 +0100 Subject: [PATCH] Made it so when players join all symbols automatically get filtered out of their name --- OKAYY Framework Basic/kuz_Essentials/profile/main.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OKAYY Framework Basic/kuz_Essentials/profile/main.lua b/OKAYY Framework Basic/kuz_Essentials/profile/main.lua index 7a3d71f..a5b605b 100644 --- a/OKAYY Framework Basic/kuz_Essentials/profile/main.lua +++ b/OKAYY Framework Basic/kuz_Essentials/profile/main.lua @@ -72,6 +72,9 @@ end AddEvent("OnPlayerJoin", function (player) loaded[player] = false + local fullName = GetPlayerName(player) + local name = fullName:gsub( "%W", "" ) + SetPlayerName(player, name) end) function SendPaychecks()