Jump to content

keymetaphore

Members
  • Posts

    175
  • Joined

  • Last visited

Everything posted by keymetaphore

  1. Skype is dead, please get a Discord or we won't be able to contact.
  2. Supply the string to the query. https://dev.mysql.com/doc/ https://wiki.multitheftauto.com/wiki/DbConnect https://wiki.multitheftauto.com/wiki/DbQuery
  3. So just use it like in my example, you supply a table to the toJSON().
  4. Sure thing. -- So, first we are going to create a table with any info. table = { } table[1] = "a" -- Tables cannot be stored to mysql, so we are converting it to JSON jsonTable = toJSON(table) -- Now it will be in the format of [ { "1": "a"} ] (something similar, writing by my head) -- This can be saved in mysql. -- When you want to use it as a lua table, use fromJSON(json string)
  5. You can. toJSON and fromJSON will do the trick.
  6. Not gonna contact you on FB, that's so dead. Add me on Discord Syncer#1290 or hit me a PM here. (not recommended, it'll take time)
  7. https://nightly.multitheftauto.com
  8. Suggestion for this script. This is a long hassle, here's an easier method. function isPlayerTyping (player) -- change this return blah -- this is the function that checks if he's typing. function returns true/false, result will be the same end Much faster C:
  9. Please advertise im the appropriate section About the topic, contact me at Syncer#1290
  10. are you visually seeing the colshape in /showcol? if you are, add a debug line at line 28 that outputs something so you can see if it's executed
  11. I think he didn't want to use exports for some reason.
  12. Why don't you like the exports tho? You can use an event aswell, but things get bit different there.
  13. Show /debugscript 3; show your current code. I doubt someone is just going to write the whole script for you.
  14. You should rewrite that in a way that someone else can actually understand it, including screenshots and a readable problem.
  15. This has been suggested four million times. This has never been implemented and probably will never be because it will require a lot of unnecessary rework with almost no point at all.
  16. Can you use code tags for that, my friend? I'll help you when you do that. It's [ code ] long long code [ / code ] without spaces. @Venon1
  17. Hey. I might be asking a real stupid question, but I've just ran out of ideas. I am creating a progress bar, based on DX (the one on wiki wont work because its divided in parts). I have created the first rectangle, but I have trouble calculating the width of the second one. -- ex. code -- first rectangle, base baseWidth = 200 dxDrawRectangle(10, 10, baseWidth, 10) -- might be lack of args, but you get the point -- second rect indicating progress progress = 4 dxDrawRectangle(10, 10, baseWidth/4, 10) -- this is not a correct calculation, just an example I
  18. Does the function get executed? Show meta.xml
  19. Ghetto in Jefferson made me smile, but actually, it's not that bad. The houses in the middle could be less and you could add some chairs or something like that, maybe a barrel that all :O's love (pls no ban), just improvise a little bit on that.
  20. What mods? Are you talking about resources? Are you able to start them using the start command in console? Show a meta.xml. Be more specific, my friend. Feel free to tag me when you're done. @MaxxR
  21. Well, why you need it if you made it? I'd do the following : disable grenade explosion, on the same event get the animation, dunno about the projectile if it can be changed, but you can always use mta beautiful functions, then check who got hit and apply the animation
×
×
  • Create New...