• Content count

  • Joined

  • Last visited

  • Days Won


koragg last won the day on December 17 2017

koragg had the most liked content!

Community Reputation

111 Excellent

About koragg

  • Rank
    Crime Partner
  • Birthday 11/02/1997


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

Recent Profile Visitors

3,043 profile views
  1. Get HUD radar position

    You could just draw everything and make it look good on your resolution then use this: https://forum.mtasa.com/topic/96776-tut-scaling-drawinggui-elements-for-all-resolutions/
  2. What is the default login system?

    Try this: https://wiki.multitheftauto.com/wiki/OnPlayerCommand It has a string parameter which is the command name. So just check if the executed command is either login or register and use cancelEvent() Not tested though, just an idea
  3. Gold Unique bodywork for car?!

    Check how this is made and edit it for your needs: https://www.mediafire.com/file/emwel4ayeobp8sp/vehiclepaintjob.zip
  4. why vehicle or object not visible in other interior

    What bad english? You didn't say anything. Gave no code at all! Are we magicians or some mind readers? Please look at the rules topic for the proper way of asking for help around here.
  5. If you won't integrate the things to some website then there's nothing stopping you from using the default MTA functions. Easier and can do pretty much anything.
  6. race ends hunter reached.

    OK then, new approach. Remove the code you put at the end of the file and put this instead: function onResStart() setTimer(function() for i, player in ipairs(getElementsByType("player")) do local veh = getPedOccupiedVehicle(player) if veh then if getElementModel(veh) == 425 then triggerEvent("timesUpPalServer", root) end end end end, 50, 0) end addEventHandler("onResourceStart", resourceRoot, onResStart) When the race resource starts an infinite timer will be started which checks if a player's vehicle is with ID 425 (Hunter) every 50 milliseconds and if it is - ends the race.
  7. race ends hunter reached.

    Even if you send it i can't test it as i don't have mta installed atm. Should work, by console i hope you mean the /debugscript 3 window as F8 won't show any errors.
  8. race ends hunter reached.

    OK, forget about the blue Are there any errors in debugscript 3 ?
  9. race ends hunter reached.

    Yes it was beyond midnight so i made a mistake Replace triggerServerEvent with triggerEvent and see then. If still nothing replace localPlayer with root inside the event call. About the blue there's no problem. It should be blue if you're using Notepad++ but maybe you're using another program. Oh and use /debugscript 3 in chat when you test stuff. It gives you what's wrong and can help you (us) in fixing the problem much easier. You can turn off debug with /debugscript 0 when you're done with it.
  10. race ends hunter reached.

    Can't test but try to open "race.zip", then open the file called "race_server.lua" and find the function called "raceTimeout". Now above the function add this addEvent("timesUpPalServer", true) and right after the function ends add this addEventHandler("timesUpPalServer", root, raceTimeout) Now at the very end of the same file (can be anywhere, just to be easily findable I say this) put this function onPlayerPickUpRacePickup(pickupID, pickupType, vehicleModel) if pickupType == "vehiclechange" then if vehicleModel == 425 then triggerServerEvent("timesUpPalServer", localPlayer) end end end addEventHandler("onPlayerPickUpRacePickup", root, onPlayerPickUpRacePickup) Save the "race_server.lua", save/update the "race.zip" and restart it using /restart race command in server. Now when a player picks up a "vehiclechange" pickup and if the vehicle it changes to is with ID 425 (aka Hunter) it forces the "Time's up pal!" message and the map ends.
  11. Move DebugScript?

    You should focus on fixing all errors shown other than finding a way to move it haha
  12. race ends hunter reached.

    What you're doing is definitely not a race server, it's a DM one. Never confuse the two. And seeing you are searching for a map in which to put the functions given to you I'd suggest to hold back with opening your server or even making big things. Download community resources, edit them, fix errors, recreate them, make your own small mods, etc. You need to learn the basics before doing anything at all.
  13. Difference between client and server-side

    Well some functions can only be used on either client-side or server-side but in your particular situation it simply means that if used client-side the position will be changed only to you, meaning that other players will not see the change. Whereas if used server-side all other players will see you in your new position.
  14. max length of setAccountData and setElementData

    Well there is no limit written on wiki so I guess it's huge? Try to do what you want, if it works - nice, if not - use SQL instead
  15. Hey there, I recently renamed all default resources (mapmanager, mapcycler, votemanager, admin, etc) so that they don't get overwritten by other versions when people join other servers than mine. This means that people would download lesser resources when they come from another server to mine. And it all worked fine except for one (for now) resource - scoreboard.zip. So The problem in it is that I use the web http interface to see the scoreboard from my site and when I rename the resource to "cr_scoreboard.zip" the website support breaks. Does anyone know what and where I have to edit other than the name so that I can successfully rename the scoreboard resource but retain all it's web functionality? The same applies to the 'resourcebrowser' and the rest web-based resources. Any help would be appreciated. I tried to edit some javascript files inside the scoreboard and other web resources but still couldn't get it to work. My goal is to rename every single resource so that when players download them once, they will never need to download them again unless I update the resources themselves.