Jump to content

unknooooown

Members
  • Posts

    259
  • Joined

  • Last visited

Everything posted by unknooooown

  1. Good luck with that. If Callum can do it in a week, then surely you can do it in less time!
  2. Sane is good scripter you listen to him always to lern from god codeing. he make meaning to understanding and stuff in code and stuff
  3. Cool. Maybe your next goal is to optimize it and make it a little less shit.
  4. @Wadamde, the file he saved was "mta.txt" not "mta.xml", lol minor mistake, who cares.. HeArTBeaT, tell us if the situation is resolved please. Not that it really matters, but where do you see ".txt" ?
  5. In your script folder you have called the meta.xml file mta.xml - Thats whats causing the problem.
  6. We should prevent players from chatting as well.. I DONT LIKE THIS!
  7. 1. Place the entire zip in MTA\server\mods\deathmatch\resources. 2. Start your server and type: start neon 3. Get on the server and use command /neon Note: I havent tried the resource myself.. I just looked at the code for the command.
  8. unknooooown

    Rules

    Place the eventHandler from line 49 inside the createRulesWindow func.
  9. Godmother? You need to show a lot more info before we (Or at least myself) can help you. I could show you an example already, but that would probably just confuse you. Before I help, do you know anything about scripting at all? I am asking because I need to know how to explain things to you.
  10. unknooooown

    Need help

    No really.. This is probably what you are looking for. function maximize() guiSetSize ( gui, 1, 1, true ) end addEventHandler("onClientGUIClick", button_maximize, maximize) Would you mind telling us why you were using math.random() ?
  11. Im sure there is a decent guide in the gamemode you have downloaded. A lot of people use it, so you should be able to do so as well. If you don't know what you are doing at this point, then it probably wont get any easier unless you learn Lua yourself.
  12. You dont need any args for it. local t = { "b", "c", "a", "d" } print( unpack(t) ) -->> b c a d table.sort( t ) print( unpack(t) ) -->> a b c d EDIT: But then again, you cant just sort getElementsByType("player") afaik as that returns elements. If you want it to sort by the player names, you could do: local players = getElementsByType( "player" ) -- Get all the players. local playerNames = {} -- Create a table to store the player names. for i=1,#players do -- Loop through all players. local playerName = getPlayerName( players[i] ) -- Get the players name. table.insert( playerNames, playerName ) -- Store the players name in the new table. end table.sort( playerNames ) -- Sort the new table. print( unpack( playerNames ) ) -->> aPlayer bPlayer cPlayer dPlayer
  13. Rename the functions in your own script.
  14. I am not 100% sure about what you are trying to do here, but I get the idea that you want to take a screenshot of a client and display that for police on the server? If so, have a look at this: https://wiki.multitheftauto.com/wiki/Tak ... ScreenShot https://wiki.multitheftauto.com/wiki/OnPlayerScreenShot
  15. What do you want to do when the vehicle has been found? You are on the right track with the code, but we need some more info to help you.
  16. Check for any mistakes where you trigger the "spawnvehicle" event. If there are no mistakes there, then try checking your meta file and see if you added it twice by accident.
  17. addEventHandler ( "onResourceStart", getRootElement, onLoad ) --on line 44 in s_base.lua should be changed to: addEventHandler ( "onResourceStart", getRootElement(), onLoad ) Also.. You dont have to use getRootElement() You can use 'root' as this is predefined. -- So this: addEventHandler( "onResourceStart", getRootElement(), func ) -- Is the same as: addEventHandler( "onResourceStart", root, func )
  18. Its just weird that noone else has asked about it.
  19. Hey guys. I havent been able to connect to irc.gtanet.com for some time now. I know that Remi has the same problem. Anyone know whats going on?
  20. Try changing: function getRandomLocation ( ) -- Here you try to unpack from table 'locations' ( That doesnt exist ) return unpack ( locations [ math.random ( #locationTable ) ] ) end to: function getRandomLocation ( ) -- Instead unpack from 'locationTable' return unpack ( locationTable [ math.random ( #locationTable ) ] ) end
  21. unknooooown

    Jail Help

    Come on DrakeN.. At least tell him what you did so he can learn from it.
×
×
  • Create New...