Anyone knows why there are special character like "$" not working with the following code:
gButtons.bet_input = guiCreateEdit( 0.605, 0.965, 0.07, 0.0225, "other", true )
guiEditSetMaxLength (gButtons.bet_input, 128 )
characterBlackList = {"Q","W","E","R","T","Y","U","I","O","P","A","S","D","F","G","H","J","K","L","M","N","B","V","C","X","Z","q","w","e","r","t","y","u","i","o","p","a","s","d","f","g","h","j","k","l","z","x","c","v","b","n","m","|","!","@","#","$","%","^","&","*","(",")","-","=","+","_"
}
addEventHandler("onClientGUIChanged", gButtons.bet_input, function(element)
for c,l in ipairs (characterBlackList) do
if (string.find(guiGetText(element),l)) then
local text = string.gsub(guiGetText(element),l,"")
guiSetText(element,text)
end
end
end)