Jump to content

koragg

Members
  • Content Count

    721
  • Joined

  • Last visited

  • Days Won

    2

koragg last won the day on December 17 2017

koragg had the most liked content!

Community Reputation

134 Excellent

About koragg

  • Rank
    Homeboy
  • Birthday 11/02/1997

Details

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

Recent Profile Visitors

7,496 profile views
  1. 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.
  2. koragg

    [HELP] F11 Map

    Use isPlayerMapVisible in the rendering / enabling functions of those resources like this: if isPlayerMapVisible() then return end
  3. 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.
  4. Merry Christmas everyone, this game's always gonna be fun in huge part because of the scripting in Lua part
  5. 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
  6. 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.
  7.  

    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

      koragg

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

  8. 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 chan
  9. 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).
  10. Also does this work for Lua files as well or only for models etc?
  11. 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
  12. 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.server
  13. How to use it I guess. I tried the below and nothing happened. function onNickChange() self:updateTopText() end addEventHandler("onPlayerChangeNick", root, onNickChange) also tried this: function onNickChange() if g_SToptimesManager and g_SToptimesManager.mapTimes then g_SToptimesManager:updateTopText() end end addEventHandler("onPlayerChangeNick", root, onNickChange) as well as this: function onNickChange() if g_SToptimesManager then local map = exports.cr_mapmanager:getRunningGamemodeMap() local mapName = getResourceInfo(map, "name") or getResourceName(map)
×
×
  • Create New...