Jump to content

xXMADEXx

Members
  • Posts

    2,718
  • Joined

  • Last visited

Everything posted by xXMADEXx

  1. Your screen is 2D, there is no Z value, and what do you mean you don't know how to get the position?
  2. xXMADEXx

    ffs music

    They probably actually use fetchRemote for album covers.
  3. I wasn't really to busy, so I went a head and re-scripted the resource, so now it does the following: - Added messages fade in/out - Replaced timers with getTickCount ( ) - Made it so the same messages can be showed more than once Download @ https://community.multitheftauto.com/index.php?p= ... ls&id=7668
  4. viewforum.php?f=122 (Edit: The topic was in Spanish before he edited it)
  5. That's not really what he was asking.. The variable is assigned, when the variable is assigned. I had this question to for a while but decided to put it to a test.
  6. You need to define the sound element in in a variable then use destroyElement...
  7. Yeah, but it still didn't work. Pretty sure it's an MTA bug.
  8. The class is GuiGridlist, when you put a capital L it says a nil value is given.
  9. I'm guessing that it is a bug because I'm using it in the same form as the gui label and the GUI label is creating just fine. Just asking why do you use opp scripting ? why don't you use the old scripting it's much esay and no erros , Because OOP makes it easier to read the code and most programming languages are OOP so it would only make since to write in it since I can now.
  10. I'm guessing that it is a bug because I'm using it in the same form as the gui label and the GUI label is creating just fine.
  11. Yes, options2 is defined and in OOP you don't have add the element as an argument, that's what grid: does. Thanks for trying to help though. what is , OOP ? and did you try this script ? https://wiki.multitheftauto.com/wiki/OOP_Introduction
  12. Yes, options2 is defined and in OOP you don't have add the element as an argument, that's what grid: does. Thanks for trying to help though.
  13. Hey guys. So, I'm scripting with the new OOP feature in mta 1.4 beta, but for some reason I am having issues with the GuiGridlist class. I'm using it just like any other class but it says the following: attempt to index global 'grid' (a userdata value) I'm honestly not sure if I'm doing something wrong or if it's just an MTA bug, but here's the code that I wrote: function makeGui ( ) window = GuiWindow.create(334, 104, 710, 479, "Nerd Gaming Help", false) window.setSizable = false; grid = GuiGridlist.create(356, 34, 274, 150, false, window) --guiGridListAddColumn(grid, "", 0.9) grid:addColumn ( "", 0.9 ) -- Issue here img = GuiStaticImage.create(61, 34, 272, 150, ":NGLogin/files/logo.png", false, window) info = GuiLabel.create(61, 234, 569, 186, "This is my text", false, window) info:setFont ( "default-bold-small" ) info:setHorizontalAlign ( "left", true ) showCursor ( true ) for i, v in pairs ( options2 ) do local r = grid:addRow ( ); -- Issue here grid:setItemText ( r, 1, tostring ( v [ 1 ] ), false, false ) end end
  14. function onPlayerWasted ( test ) outputChatBox ( "FF0000You gonna die", source,255,255,255, true ) end addEventHandler ( "onPlayerWasted", root, onPlayerWasted )
  15. Use the aclrequest command in console.
  16. You can just open map editor and search for the object.
  17. https://code.google.com/p/mtasa-blue/so ... ch/acl.xml
  18. You mean using the mta compiler on them? https://luac.multitheftauto.com
  19. From assuming I know what you mean, you just have to use a loop for the table and in each index of the loop use guiCreateGridListRow and guiGridListSetItemText.
  20. It's a free resource he gave to the community, I wouldn't really expect it to be good.
  21. It's a resource that's creating it, most likely the playerblips resource. Just stop the resource and the blips will be gone.
  22. I don't really understand this part...
  23. xXMADEXx

    Trouble

    You can just use it on the server-side with getPlayerIdleTime function checkPlayers ( ) for i, p in pairs ( getElementsByType ( "player" ) ) do local t = math.floor ( getPlayerIdleTime ( p ) / 1000 ) if ( t >= 60 ) then kickPlayer ( p ) end end end checkPlayers ( ) setTimer ( checkPlayers, 3000, 0 )
×
×
  • Create New...