Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About TrapiS

  • Rank
  • Birthday 26/06/2003


  • Location
    Brasil - São Paulo
  • Interests
    LUA Script

Recent Profile Visitors

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

  1. Thanks everyone for the help, but I've already managed to achieve the result I expected using the interpolateBetween function to calculate the color values local multiplier = sX/820 local scrollPosition = localPlayer:getData("reputation")*multiplier local progress = 100 / (200*multiplier) * scrollPosition / 100 if progress <= 0.5 then rR, rG, rB = interpolateBetween(255, 0, 25, 255, 200, 0, progress*2, "Linear") elseif progress > 0.5 then rR, rG, rB = interpolateBetween(255, 200, 0, 0, 255, 25, progress-0.5, "Linear") end local hex = RGBToHex(rR, rG, rB)
  2. Thanks for the answer. I've already created the gradient texture for the reputation bar, but I'm not sure how to get it to see the color code in a specific position that would be the position where the bookmark would be, I'd have to use dxCreateTexture and dxGetTexturePixels for this? Gradient Texture: https://prnt.sc/ktpkoh Part of the reputation code: dxDrawText("Sua reputação: " .. localPlayer:getData("reputation_rank") .. "(" .. localPlayer:getData("reputation") .. ")", 1115 + 1, 440 + 1, 1605 + 1, 465 + 1, tocolor(50, 50, 50, 100), 0.60, g_MenuSettings['default'][
  3. For starters, sorry for the mistakes in English, I'm from Brazil. I am trying to create a Freeroam in DX with the theme of Forza Horizon, in this freeroam I am creating a system of reputation of the player, of standard the reputation will be 100 points a neutral reputation, as it makes friendships within the server the reputation of it will rise, being able go up to 200 points, but if he arranges many discussions between players, his reputation will be decreased and can reach up to 0. https://prnt.sc/ktm4bc I wanted to make the "neutral (100)" string change color according to it
  4. Sorry for my english, i am Brazilian. I need a help because i want to compare a string with a number, but is not possible, i would like to know if there is any possibility of comparing a string with a number. Or create a function that blocks all numbers smaller than 1, and greater than 100000. Here is the script: Total script lines: 738 this is the script part of line 235 to 378 rollTime = 3500 gameDelay = 4000 playerWinRoll = {} jogoDosDadosStarted = {} function jogoDosDados (source, commandName, amount) if (isObjectInACLGroup("user." .. getAccountName(getPlayerA
  • Create New...