Hello, so, I have this plate giver system, but there’s a trouble, basically, that it gives a plate, but there’s a trouble, how can I filter it, because, if I filter string for broadcast, it will tag numbers, and I need the numbers, how can I make sure it doesn’t says a word like well, no need to say it, just to make sure no insults?
local letters = {"a", "b", "c","d", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"}
local numbers = {"1", "2", "3", "4", "5", "6", "7", "8", "9"}
function GivePlate(plr, VehicleModel)
local plate
repeat
plate = string.upper(letters[math.random(1, #letters)])..string.upper(letters[math.random(1, #letters)])..string.upper(letters[math.random(1, #letters)]).." "..numbers[math.random(1, #numbers)]..numbers[math.random(1, #numbers)]..numbers[math.random(1, #numbers)]
wait()
until not PlatesData:GetAsync(plate)
if plate and not PlatesData:GetAsync(plate) then
PlatesData:SetAsync(plate, {owner=plr.Name, vehiclemodel=tostring(VehicleModel)})
end
end
This are some of the plates that it would show, i think it’s kinda impossible for it to say a bad word, right?