• Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About Juniorr

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello, I have a resource here in html and when I put it in the MTA, it has a white background, I don't understand practically anything about html and css and I already tried to make the body background as transparent, but the background was white πŸ™ƒ body { background: transparent; } Does anyone know how to make it transparent to help me, please πŸ™‚
  2. Opa, eu tenho uma resource aqui em html e quando eu coloco no MTA, ela fica com o fundo branco, eu nΓ£o entendo praticamente nada de html e css e eu jΓ‘ tentei colocar o background do body como transparent, mas o fundo ficou branco πŸ™ƒ body { background: transparent; } AlguΓ©m sabe como deixa transparente pra me ajudar, pfv? πŸ‘ŒπŸ‘ŒπŸ˜
  3. Hello, I am in doubt about how to get the ids system of this resource to implement in my chat resource. IDS Resource Link: https://community.multitheftauto.com/index.php?p=resources&s=details&id=2322 Everything I have so far from my script: function twitter ( thePlayer, _, ... ) local message = table.concat ( { ... }, " " ) local uncoloredMsg = string.gsub(message, "#%x%x%x%x%x%x", "") --Delete all HEX codes. local nick = getPlayerName(thePlayer) local uncoloredNick = string.gsub(nick, "#%x%x%x%x%x%x", "") --Delete all HEX codes. outputChatBox ( "[TWITTER] "..uncoloredNick.."[ID]: "..uncoloredMsg, root, 255, 255, 255, true ) end addCommandHandler ( "twitter", twitter )
  4. For me to get the player ID I have to use: getElementData( source, "ID" ) not? with me not caught (I'm new sorry :v)
  5. Hello everyone, I come first to apologize for my English 😁 (google translator) I have this ID system code below, but I wanted it when the player enters the server, save the ID of it, and when it returns on the server it is with the same ID. local playerid = { } function newPlayerID( player ) for i = 1, getMaxPlayers( ) do if not ( playerid[ i ] ) then playerid[ i ] = player setElementData( player, "roleplayid", i ) break end end end function getPlayerByID( id ) for i = 1, getMaxPlayers( ) do if ( playerid[ i ] ) then print( getPlayerName( playerid[ i ] ) ) return playerid[ i ] end end end addEventHandler( "onPlayerQuit", root, function( ) for i = 1, getMaxPlayers do if ( playerid[ i ] == source ) then playerid[ i ] = nil break end end end ) addEventHandler( "onPlayerJoin", root, function( ) newPlayerID( source ) end ) addEventHandler( "onResourceStart", resourceRoot, function( ) local players = getElementsByType( "player" ) for i = 1, #players do newPlayerID( players[ i ] ) end end )