Jump to content

GTX

Members
  • Posts

    1,273
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by GTX

  1. Great milestone for MTA (fun fact: if I'm not wrong, implementing custom animations required more than 3,000 lines of code! Huge props to you, Saml1er, for making this a reality). Good job to all the contributors! ??
  2. Great job! I hope the new community will be open source so we can contribute and keep the updates and feature additions frequent.
  3. Which number are you trying to change? And use debugscript to see if you get an error.
  4. You must use HTTP port (so according to default MTA configuration, it's 22005. Use the one that you put in mtaserver.conf under httpport attribute)
  5. You can bind it like so: bindKey("G", "down", "chatbox", "Global") addCommandHandler("Global", function() -- stuff end )
  6. https://wiki.multitheftauto.com/wiki/CallRemote There's an example (Example #2).
  7. local result, num_rows_affected = dbPoll(dbQuery(userdata_db,"SELECT * FROM masterdata WHERE username = ?",username),-1) if num_rows_affected ~= 0 then outputChatBox("#afafaf[#f9a52fSA:MP#afafaf] #f9a52fVeritabanina bir veri eklenmedi.",root,255,255,255,true) else dbExec(userdata_db,"INSERT INTO masterdata VALUES (?,?,?,?,?)",username,serial,ip,'',oyuncu) end
  8. Because dbQuery returns a handle, with which you can get data from a table using dbPoll. It waits until you use it, so if you free it, it would work. dbExec only executes query, therefore returns nothing.
  9. Use dbExec( userdata_db, "INSERT INTO masterdata VALUES (?,?,?,?,?)",username,serial,ip, '',oyuncu)
  10. Try https://wiki.multitheftauto.com/wiki/SetElementCollidableWith
  11. The animations are much faster in-game and there'll be an auto-login. I don't know, the video may had been slowed down a little.
  12. I would like to show you a glimpse of a future server I am developing - Project Beast. This is made purely with drawing functions, there is no CEF involved. More information here: https://forum.projectbea.st/topic/135-project-beast-revelation-2-login-panel-final-server-upgrade/
  13. It's useless and not worth it. If he wants to create objects client side, he can just send data from server and create them - and it's most safest way too.
  14. I didn't try with 50 players yet. I tried with 10 and it worked really good. I got bandwidth set to 2 MB. I don't think downloading 1 MB file will cause lag.
  15. GTX

    Race Problem

    That happens if you destroy player's vehicle. Maybe your script is doing it or one of your friends is trolling you (if he's an admin).
  16. GTX

    Question

    Yes, but you need to attach it somehow if your window is movable.
  17. Well, you need a webserver to access it and since you need to access it with fetchRemote, everyone can access it in browser. For compression thing, use your logic
  18. GTX

    sql problem

    exports.NGSQL:db_exec(" UPDATE `group_stuff` SET kills = ? WHERE name = ?", Kills_[Killer], groupPlayer)
  19. Well, only people with experience in networking could steal maps if you use triggerLatentClientEvent (not triggerClientEvent, in latent event other network traffic isn't blocked while the data is being transfered). You could even encrypt data if you'd like. FetchRemote is definitely faster but it's not secure. I'd suggest to compress map data and send it through triggerLatentClientEvent (so you don't need to worry about security much) and files through fetchRemote (that's what I use). So, you have three options: Go for fetchRemote on both (in terms of security, this is bad, but in terms of speed, it's faster than latent event, especially if you use Gzip compression) Go for latent event on both (in terms of speed, this is slow and is bad when all players download at the same time, but in terms of security, I think you're good to go) Use latent events and for files use fetchRemote (which are usually bigger than map and you usually don't need to protect them) It's up to you. If someone finds any other (better) way, let me know.
  20. Create a polygon. createColPolygon "onColShapeHit" "onColShapeLeave"
  21. It really depends: Are you making a multigamemode? If so, go for client side because if you do it on server side, you will load map for every player in the server, which is not good. On the other hand, if you want to load a map for all players in the server, you should go for server side.
  22. The error means that element data with key "fuel" wasn't set. You must set it. If you didn't even make fuel system, well it won't work by itself...
  23. @Walid Your code won't work if he presses mouse button to fire the weapon. Use control name "fire" instead of "lctrl".
  24. GTX

    API Query for c#

    You can pass them within POST request or do a token check.
×
×
  • Create New...