Skip to content

Commit

Permalink
Made it so when players join all symbols automatically get filtered o…
Browse files Browse the repository at this point in the history
…ut of their name
  • Loading branch information
Kuzkay authored Dec 30, 2019
1 parent ca033ae commit 214e8ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OKAYY Framework Basic/kuz_Essentials/profile/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 214e8ad

Please sign in to comment.