Jump to content

koragg

Members
  • Content Count

    716
  • Joined

  • Last visited

  • Days Won

    2

koragg last won the day on December 17 2017

koragg had the most liked content!

Community Reputation

132 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,211 profile views
  1. 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
  2. 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.
  3.  

    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.

  4. 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
  5. 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).
  6. Also does this work for Lua files as well or only for models etc?
  7. 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
  8. 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
  9. 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)
  10. Hey guys, Is it possible to update the toptimes window forcefully for all players whenever a player changes their nickname? I tried using some of the functions in the resource but since it's all in OOP - Idk nothing. Basically I've made the toptimes script to record account names into the database and to show account data as top name for all players in the F5 window. Every time a player changes their nickname that account data also changes so I want to forcefully update the F5 toptimes window for all playes online in order for it to be exactly up to date with the top names.
  11. wow @IIYAMA thanks, I'll need some days to see how this works and if I can use it
  12. @JeViCo it's not really my function, just used the resource how it was when I downloaded it. Don't wanna touch it if it works ok as it is Only wanna create the animation I mentioned.
  13. Hello guys, I have the below script which creates a small notification at the top center of the screen. I added a /showmsg command for testing purposes. If I type /showmsg once and then after 1 second type it again the new notification would go below the previous one with a little animation. But the problem is that when the first notification disappears, the second just switches places with it with no animation at all. I'd like to have a smooth animation transition for the second notification when the first notification disappears and the second takes its place. If you test it out yoursel
  14. Try like this maybe? guiGridListGetItemText(giveWindowGridlist,guiGridListGetSelectedItem(giveWindowGridlist)) As guiGridListGetItemText accepts 3 arguments which are gridList, rowIndex and columnIndex but the function guiGridListGetSelectedItem returns two things according to MTA wiki: Returns the row and column indexes of the selected item Not sure but play around with it as it's hard to guess what's wrong as I can't test it myself. Though if this is the case I'm not sure why the first one works fine for the Translated variable.
×
×
  • Create New...