Jump to content

manve1

Retired Staff
  • Posts

    1,283
  • Joined

  • Last visited

Everything posted by manve1

  1. Is there something wrong with this? as it doesn't make me walk setPedControlState ( localPlayer, 'walk', true )
  2. What is the function to make ped move different?
  3. Thank you guys for the information how to do it, but I didn't mean like that 3NAD, but i re-made yours to make it work as i wanted and added for more things in there so i can't post the script as it now has more lines then that
  4. after changing timer time, it somehow just ruins the 100 number and becomes 1000
  5. This worked, but there isn't orange color, i tested few times, and i couldn't see orange color
  6. it shouldn't go down then stop when its 59%, it should change color when its 0 to 30 <= red, 31 to 59 <= orange, 60 to 100 <= green @3Nad your edited script didn't work too
  7. problem, when its 50 its green
  8. label = guiCreateLabel( 0.855, 0.235, 0.1, 0.1, '0 %', true ) guiSetText( label, 100 ..' %' ) variable = 100 setTimer( function( ) variable = ( variable > 59 and variable - 1 ) if ( guiGetText( label ) == variable ..' %' ) then guiLabelSetColor( label, 0, 255, 0 ) end end, 50, 0 )
  9. it compared number with boolean when i done what you (( novo )) said
  10. I came up with this after ur post, but label is still white and it say's ''100 %'' on the label setTimer( function( ) variable = 100 variable = ( variable > 59 and variable - 1 ) if ( guiGetText( label ) == ''.. variable ..' %' ) then guiLabelSetColor( label, 0, 255, 0 ) end end, 50, 0 )
  11. Is there a function which gets numbers between 60 and 100 (( not math.random )) which would get each second (( using timer ofc )) and would change a label color if number changes, i don't want the math.random as it generates number randomly, i want it to go down from 100 to 60 And if it is 90 to 100 (( 91, 92, 93 .. ect .. )) it will be one color, if its from 60 to 70 ( 61, 62, 63 .. ect )) it will be another color
  12. this works for me when i click on grid2 then on grid1: click1 = function() local row,col = guiGridListGetSelectedItem ( grid ) local row2,col2 = guiGridListGetSelectedItem ( grid2 ) if ( row == 0 ) and ( col == 1 ) then guiSetText(text,english) elseif ( row == 1 ) and ( col == 1 ) then guiSetText(text,lithuanian) elseif ( row == 2 ) and ( col == 1 ) then guiSetText(text,portugese) elseif ( row == 3 ) and ( col == 1 ) then guiSetText(text,spanish) elseif ( row == 4 ) and ( col == 1 ) then guiSetText(text,italian) elseif ( row == 5 ) and ( col == 1 ) then guiSetText(text,latvian) elseif ( row == 6 ) and ( col == 1 ) then guiSetText(text,polish) elseif ( row2 == 0 ) and ( col2 == 1 ) then guiSetText(text,commands) elseif ( row2 == 1 ) and ( col2 == 1 ) then guiSetText(text,website) elseif ( row2 == 2 ) and ( col2 == 1 ) then guiSetText(text,updates) elseif ( row2 == 3 ) and ( col2 == 1 ) then guiSetText(text,staff) end end addEventHandler('onClientGUIClick',root, click1) But, when i click from grid1 to grid2 it doesn't show grid2, it shows grid1
  13. why would u need a grid list? As i didn't do anything with it There is: 2 gridlists, 1 memo and i want to make that when i click on one gridlist writing appears in memo (( I know how to make this )) but when i click on the other gui, i need the first one to cancel out it's writing in memo
  14. I have 2 grid's in my script and i'm not sure how i can get if other grid was pressed, if it was then the click would be removed, I need this for a memo.
  15. Is there some functions which would redirect you to a website when u click something (( open internet page with the specified website )). I seen In Java you are allowed to do the html functions so i though mta might have them.
  16. No, you must put the file in ur resources folder, but give rights of an admin to it, this is only because some functions might need admin rights to work (( login/register panels need this ))
  17. manve1

    [HELP]turfing

    That's 50p, not me. Different person = Different thinking
  18. I need it cheap, but can u post a web link to it?
  19. Is it back with someone else fixing illegal scripts? not worth it.
×
×
  • Create New...