CONST_GENERATED_SLIDERS = { [1] = { title = "« Bem-vindo »", text = [[ Se você é um jogador novo no servidor, digite /hediye para receber $10.000. ]] }, [2] = { title = "« Cristais Escondidos »", text = [[ Existe um sistema de caça aos cristais no servidor. Encontre cristais espalhados pelos diferentes cantos do mapa e gaste-os em modificações exclusivas para veículos! ]] }, [3] = { title = "« Nossas Redes Sociais »", text = [[ Você pode acompanhar nossas redes sociais para receber informações e novidades atualizadas. www.instagram.com/sparrowmta/ ]] }, } function splitTableWithCount( tbl, count ) local splitted = {} local currentBlock = 1 local cCount = 0 for index, value in pairs( tbl ) do splitted[ currentBlock ] = splitted[ currentBlock ] or {} table.insert( splitted[ currentBlock ], value ) cCount = cCount + 1 if cCount >= count then currentBlock = currentBlock + 1 cCount = 0 end end return splitted end function string.split( str ) if not str or type( str ) ~= "string" then return false end local splitStr = {} for i = 1, utf8.len( str ) do local char = utf8.sub( str, i, i ) table.insert( splitStr , char ) end return splitStr end function splitStringWithCount( str, count ) local result = splitTableWithCount( string.split( str ), count ) local _str = {} for _, row in pairs( result ) do table.insert( _str, table.concat( row, '' ) ) end return _str end function Clamp( min, a, max ) return math.max( math.min( a, max ), min ); end -- Sitemiz : https://sparrow-mta.blogspot.com/ -- Facebook : https://facebook.com/sparrowgta/ -- İnstagram : https://instagram.com/sparrowmta/ -- YouTube : https://www.youtube.com/@TurkishSparroW/ -- Discord : https://discord.gg/DzgEcvy