-
Posts
175 -
Joined
-
Last visited
Everything posted by keymetaphore
-
what
-
Skype is dead, please get a Discord or we won't be able to contact.
-
Supply the string to the query. https://dev.mysql.com/doc/ https://wiki.multitheftauto.com/wiki/DbConnect https://wiki.multitheftauto.com/wiki/DbQuery
-
So just use it like in my example, you supply a table to the toJSON().
-
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)
-
You can. toJSON and fromJSON will do the trick.
-
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)
-
https://nightly.multitheftauto.com
- 1 reply
-
- 1
-
-
How to know if the player is typing something in a specified GUI
keymetaphore replied to Leo Messi's topic in Scripting
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: -
Please advertise im the appropriate section About the topic, contact me at Syncer#1290
-
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
-
Image not working
-
[LF] Looking For Roleplay Scripter [PAID]
keymetaphore replied to ak47rp's topic in Looking for staff
Syncer#1290, I can do it. -
I think he didn't want to use exports for some reason.
-
Why don't you like the exports tho? You can use an event aswell, but things get bit different there.
-
Show /debugscript 3; show your current code. I doubt someone is just going to write the whole script for you.
-
You should rewrite that in a way that someone else can actually understand it, including screenshots and a readable problem.
-
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.
-
[Kill Arrest] When acop kills a criminal, they go dont go jail
keymetaphore replied to VenomOG's topic in Scripting
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 -
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
-
Does the function get executed? Show meta.xml
-
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.
-
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
-
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