Jump to content

manve1

Retired Staff
  • Posts

    1,283
  • Joined

  • Last visited

Everything posted by manve1

  1. manve1

    Help Grid

    Solved over PM.
  2. manve1

    Help Grid

    No it's not, and i don't want to post whole script on public, i only give full scripts via PM
  3. manve1

    Help Grid

    I see the grid list ect ... everything is working, but somehow i get nil value on this only event, but the rest is working
  4. manve1

    Help Grid

    i get it on event handler, in debugscript 3
  5. manve1

    Help Grid

    I get nil value when i click on a grid list, not sure why, but i did grid lists long time ago, so i forgot how to do them; local gridDimension = guiCreateGridList( 0.275, 0.2, 0.25, 0.325, true, window ) addEventHandler('onClientGUIClick', gridDimension, function( ) if ( guiGridListGetItemText ( gridDimension, 1, columnDimension ) == "Dimension: 1" ) then outputChatBox('clicked', 255, 255, 255 ) end end, false )
  6. This section is to help with your own scripts, not for requesting something.
  7. manve1

    save Data

    local playerName = getPlayerAccount( thePlayer ) function saved( thePlayer ) if (playerName) then local x, y, z = getElementPosition( thePlayer ) if (x and y and z) then setAccountData( playerName, "positions", x, y, z) end end end function setback( thePlayer, playerName ) if (playerName) then local xX, yY, zZ = getAccountData( thePlayer, "positions" ) if (xX and yY and zZ) then setElementPosition( thePlayer, xX, yY, zZ) end end end addEventHandler("onPlayerQuit", getRootElement(), saved) addEventHandler("onPlayerLogin", getRootElement(), setback)
  8. manve1

    save Data

    local playerName = getPlayerAccount( thePlayer ) function saved( thePlayer ) if (playerName) then local x, y, z = getElementPosition( thePlayer ) if (x, y, z) then setAccountData( playerName, "positions", x, y, z) end end end function setback( thePlayer, playerName ) if (playerName) then local xX, yY, zZ = getAccountData( thePlayer, "positions" ) if (xX, yY, zZ) then setElementPosition( thePlayer, xX, yY, zZ) end end end addEventHandler("onPlayerQuit", getRootElement(), saved) addEventHandler("onPlayerLogin", getRootElement(), setback)
  9. manve1

    save Data

    you have 'set' in ur event handler and function name, as it already is a function of MTA try changing it.
  10. :facepalm: I know the function, but simply it shouldn't trigger to a label for a number -.-
  11. Thanx, but how can i trigger it from server side to client side?
  12. to create teams use: createTeam Note: Its Server-Sided
  13. Is there a function to get number of online players?
  14. Just try your best in making scripts and come over here to get help fix errors
  15. Smart. Sorry i didn't post that i figured this out, but yeh, i realized this morning i forgot to do it with guiComboBoxGetSelected
  16. it works with words aswell, after changing to numbers same problem #Edit: The first one on top I mean like: Dance/Dj will play always whatever i chose in that combo box, BUT if i change to Classic to be on top of Dance/Dj the classic will always play
  17. im using a variable? something like: local a = 7 local b = 2 outputChatBox( 'A = '.. a ..' and B = '.. b, source, 255, 255, 255 )
  18. addEventHandler('onClientGUIClick', buttonRadioPlay, function( ) if (guiComboBoxGetItemText(genreBox, 'Dance/Dj')) then if (sound) then stopSound( sound ) end sound = playSound( Dance_Dj ) elseif (guiComboBoxGetItemText(genreBox, 'Classic')) then if (sound) then stopSound( sound ) end sound = playSound( Classic ) end end ) Every thing is defined, i just don't want to post the website link.
  19. When i use combo boxes and i have few problems with sound, as i am playing 2 sounds and i check which item was selected in the combo box. If i play one sound, then try play another sound, it just play's the one that was started to play firstly. I mean it doesn't change to different music type
  20. I know that for sure, as my mate buyed host and added sms payment, it was 50% higher price than credit card
  21. the middle bit (( after exports. )): exports.players:givemoney(player,amount) Is the resource folder name as far as i know. So without the resource in your resource folder you can do absolutely nothing or re-script it.
  22. That script is used in MTA server, so if you think logically it was already made
  23. manve1

    help me

    This is compiled code, there are programs to decompile a code like this, if it is an LUA code and was made for a mta script then when u decompile it, the functions and event handlers ect ... will be picked randomly
  24. Not sure, but still i am running, when i release space still i am not walking
×
×
  • Create New...