Jump to content

Cacaroto

Members
  • Content Count

    16
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Cacaroto

  • Rank
    Square
  1. Okay, I fixed my problem with the animation with a very easy way But the way, the problem I have with the sound is when the map is changing, i used onGamemodeMapStart but still doesn't work
  2. I used the borderless window, but is shaking every second uncontrollably, should i turn on another thing?
  3. I use another way which I think is easier to use: local sX, sY = guiGetScreenSize() --IMAGINE THAT WE WILL DRAW A RECTANGLE myXRes = Your width value of your resolution myYRes = Your height value of your resolution function drawMyRectangle() dxDrawRectangle((position/myXRes)*sX, (position/myYRes)*sY, (sizeX/myXRes)*sX, (sizeY/myYRes)*sY, tocolor(20, 190, 50, 200), false) end addEventHandler("onClientRender", root, drawMyRectangle) Hope I help you!
  4. Is there any way to not turn on that mode? I would like to use full screen
  5. It works now, but I don't know how to make the regresive animation only with interpolateBetween, can you help me? By the way, I need help removing the music of maps. I used a loop to mute every sound and turn on the radio one, and the same to mute the radio and turn on the other sounds, but the problem comes when I start a gamemode map and that map has music, I tried using onGamemodeMapStarts which is a function of mapmanager but it doesn't work, if you could help me with that too... function knowRadioSong() start = getTickCount() addEventHandler("onClientRender", root, outputRadioS
  6. I was scripting a radio system but there's no way to let me move the text, the animation of the rectangle is done but it doesn't make any effect with the text. Also I was trying to show all this for a period of 5 seconds, but when I added the timer, the rectangle and the text only appear but not dissapear, can someone help me? local sX, sY = guiGetScreenSize() local open = false local radio = playSound("http://www.energy981.com/playlist/Energy98_128WM.asx") setSoundVolume(radio, 0) function drawRadio() ls,rs = getSoundLevelData(radio) meta = getSoundMetaTags(radio); title = meta.s
  7. So, I'm scripting and you know, I have to be between desktop and MTA a lot, but there's something that make me mad and is that my MTA takes a lot to open, well, not that much, but maybe 3 seconds or so... Any help for how to solve this?
  8. Okay, I fixed it, thanks man!
  9. Thanks so much! It works really fine! But there's a problem with nos, when a player pickups the nos the bar doesnt appear until he uses it, i don't know how to fix it
  10. Doesn't work, I still have the same output in the debug https://gyazo.com/478e7d84d0468b00246b8b3b76b8c7fe
  11. So I was scripting a HUD and almost everything is fine (everything okay for local player), but when a player die I want to show up in the HUD the car stats of the vehicle im spectating but it doesn't work, here i post the code: function drawSpeedo() if isPedInVehicle(getLocalPlayer()) or isPedInVehicle(getVehicleOccupant(getCameraTarget(localPlayer))) then if isPedDead(localPlayer) then specHealth = getElementHealth(getCameraTarget(localPlayer)) sHealth = (math.max(specHealth - 250, 0)/750)*100 colorR = sHealth > 50 and (255/100)*(100
  12. Okay, so would be done just checking if a player passes from -3000 or +3000 with getElementPosition? CLIENT function checkIfPlayerPassedLimit() local x, y, z = getElementPosition(getLocalPlayer()) if x > 3000 or -3000 or y > 3000 or -3000 or z > 3000 or -3000 then local pName = getPlayerName(getLocalPlayer()) triggerServerEvent ( "onLimitPass", resourceRoot, pName) end end SERVER function greetingHandler (pName) outputChatBox( pName.." has passed map limit.", getRootElement(), 255, 255, 255, trues ) end addEvent( "onLimitPass", tr
  13. I was trying to create a script which detect if a player has passed the map limit (in general case GTA:SA map). I tried something with getElementPosition but I think it's a bad way to develop this resource. Can somebody help me?
×
×
  • Create New...