Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


koragg last won the day on December 17 2017

koragg had the most liked content!

About koragg

  • Birthday 11/02/1997


  • Gang
    [SiK] Speed is King
  • Location
    Sofia, Bulgaria
  • Occupation
  • Interests
    (: Android, Mountain Biking, GTA SA & Selena Gomez :)

Recent Profile Visitors

8,086 profile views

koragg's Achievements


Homeboy (31/54)



  1. Happy holidays guys, been loving MTA ever since I first started playing it in 2013.
  2. After you read some of the stuff best way to learn is to download existing scripts and just edit them. Like changing where something spawns, changing colors of some text, changing its position, etc. I learned by editing existing scripts and i never studied lua the way i study other languages in university.
  3. koragg

    [HELP] F11 Map

    Use isPlayerMapVisible in the rendering / enabling functions of those resources like this: if isPlayerMapVisible() then return end
  4. I'm a race player and some very old maps tend to flicker some objects and/or make them invisible for some time. No clue why this happens but it does happen rarely. Hate it when i save my map and it bugs the :~ out of it. Had to start all over again a few times.
  5. Merry Christmas everyone, this game's always gonna be fun in huge part because of the scripting in Lua part
  6. If the accept id is always the same just write it inside the function like local acceptID = value. And use bindKey to bind function to key. If the acceptid isn't the same every time then it can't be done with bindKey and command handler is ok
  7. You need an accept id. This can't be done via a bind key unless the accept id is always the same and you hardcode it into the function itself.

    Hello, could you help me? I am creating a punishment panel, but I am missing a set timer to kill punished players and return to normal. Could you help me?



    1. koragg


      Hey, you'd be better off posting your problem in a topic so others can help out as well.

  9. Hello, Today I tried to upload an uncompiled resource to the community site and it said that the upload was successful but when I clicked on the "View resource" link it gave me a link which ended with "id=0". When I went to My View to check the resource was not there but there is an empty space right where the resource should have been at the top. I did "Inspect Element" on it and it can be seen that there is no value assigned to the "id" attribute of the highlighted link. The empty space can be seen as well. When I tried to upload the same resource again without changing its version it again said that it was successful but it didn't show up in My View and was again with "id=0".
  10. The only thing stopping me from using this amazing tool is the NodeJS dependency. Right now I'm hosting my server from my local PC so it will work perfectly. But if I change to a real host they don't give access to the Linux console but only to the MTA server console which means I can't install NodeJS there and can't use it then. Ideal thing would be for it to be usable just like the IRC resource, only depending on websockets.dll (or .so).
  11. Also does this work for Lua files as well or only for models etc?
  12. Can I only disable default download and not use your event handlers? I just want to use the nice looking download bar for all of my server's resources but i can't edit each script to include the custom events in it - they're just too many :s
  13. Thanks for clearing some things up @IIYAMA, I know how to use OOP in Java/C#/C++/etc but it's a bit weird in Lua for some reason Fixed my problem with the below code put inside toptimes_server.Lua thanks to @Mihoje function onNickChange() setTimer(function() for id, player in ipairs(getElementsByType("player")) do g_SToptimesManager:queueUpdate(player) g_SToptimesManager:updateTopText() local playerPosition = g_SToptimesManager.mapTimes:getIndexForPlayer(player) clientCall(player, 'onServerSentToptimes', g_SToptimesManager.toptimesDataForMap, g_SToptimesManager.serverRevision, playerPosition) end end, 1500, 1) -- This delay has to be bigger than the one which sets the current player name in the maptimes_server.Lua file! end addEventHandler("onPlayerChangeNick", root, onNickChange)
  • Create New...