-
Posts
1,193 -
Joined
-
Last visited
Everything posted by tosfera
-
This event is triggered every time GTA renders a new frame. It is required for the DirectX drawing functions, and also useful for other clientside operations that have to be applied repeatedly with very short time differences between them. You want to remove the dx right? Then just remove the event.
-
executeSQLQuery("SELECT score,health FROM players WHERE name=?", playerName ) executeSQLQuery("SELECT `score`,`health` FROM `players` WHERE `name`=?", playerName ) https://wiki.multitheftauto.com/wiki/ExecuteSQLQuery
-
You're learning and need help, that's alright. But at the end of your post you're requesting a script in the wrong section, that's not alright. Since you're learning, goodluck: getElementPosition createVehicle getPlayerTeam getTeamFromName -- optional guiCreateWindow guiCreateGridList guiGridListAddColumn guiGridListAddRow guiGridListSetItemText guiCreateButton guiSetVisible event; onClientMarkerHit
-
Hey, I've been working around it till now but it should be like this in my eyes. There are some objects which has so collision, means that you can't return an object from it or create a hitting lineOfSight. Quites bothers me that you've to write a massive script to just a few objects. Isn't there a way or someone that could recreate these collisions? :\ thanks,
-
You don't get it, after those 3 lines place this; outputDebugString ( tostring ( Col1[1] ) .." -- ".. tostring ( Col2[1] ) .." -- " .. tostring ( Col3[1] ) ); tell us what you see in /debugscript 3
-
You're talking about this system, it is cool but it shouldn't change something in the accounts of people. Else they will be farming thanks etc. https://www.phpbb.com/customise/db/mod/ ... for_posts/
-
Give us the output what col1, col2 and col3 is. ( outputDebugString ), if it's a table value then add [1] to it.
-
Maybe search for the function where it actualy creates it? Like, go to the function where it does; guiGetText ( someFiled ). there must be a buggy thing there I guess.
-
If you would be using a vector as a table it would be as simple as this; table[1] = "another name" Since you aint using that one, you've to say which row, which column. Just like a database; table[1][1] = "another name"; table[1][2] = 99; That would change the first row to 'another name' and 99.
-
if you create a empty table, it will look... empty. Just like the vector you showed us. Though, your first value decides what your table will look like. If you're adding a new table in it, it will be a matrice; local table = {} table.insert ( table, { "somename", 17 } );
-
You should create an output to see what Col1[1] returns. Cause you're getting a table back and you're using a unknown index field ( it doesn't exist in your table ). I think the ["Col1"] is the biggest problem right now
-
Hmm, you just solved and also ruined my suggestion. Awesome job.
-
Hey guys, Since I'm working with alot of programming languages at a time, and alot of scripting languages too. I sometimes walk against problems which makes me,,, quite tired. Let's take the if-statement, for a simple if-statement you have to use atleast 5 lines. Quite a few if you ask me sometimes haha. Everyone knows how the if-statement works, if you don't take a look: if ( condition ) then -- do something else -- do something end Now, in alot of languages there are alot of easier ways to write this. Not sure if LUA already has this but I'd get some errors while trying it in a script. So, the setup of the if-statement is like this: condition ? -- do something : -- do something else For example; if ( 5 > 4 ) then outputDebugString ( "I'm bigger!" ); else outputDebugString ( "I'm not bigger..." ); end would turn into; 5 > 4 ? outputDebugString ( "I'm bigger!" ); : outputDebugString ( "I'm not bigger..." ); It would be easy for simple and small checks, like single checks of guiGetText, vehicleLights, lock systems, bool's etc. So, let me know what you guys think of it. And YES, I am lazy.
-
The nitro can be done with adding some shaders or even using the particle system to it. Just have to work around with the rotation ofc. The neon lights can also be done using LUA functions already. It's just a pain in the ass to get them right haha
-
Why would you add 'removeAccountData' if you can simply set the accountData to nil? It does the same actualy. setAccountData ( theAccount, theDataName, nil );
-
I can see myself in EaroX's story, not everyone is able to handover their files to a server which can be hacked. And don't tell us the story you tell all the kids around; 'It can not be hacked, the security is the best there is'. 'Cause, everything can be hacked. People are even getting paid for this sh*t. Personally I think they should allow us to use our own compilers, if they get stolen or ripped off then. So be it, it's our own fault. But don't take down luac. Some people do use it and you don't want to force them to use another one.
-
Can I ask, what is the semicolon doing there? , "..vehicleID..");" Also, why are you adding single qoutes on int's at the x, y, z axes? Also, since it's crying about your naming about 'lock'. Try to rename the local lock to 'lockStatus', Cause a field in your table is also called lock. he might be crying about it That's all I could find in a quick scan.
-
Not sure if MTA allows other compilers instead of luac anymore, there was a huge topic about it somewhere. The big guys like Arran, Earoxbird and a few others replied there too. edit1; there you go viewtopic.php?f=91&t=65618
-
Your most recent post; OK so I need a little help, basically I want to create a pick up that outputs text into chat box how can I do this? Looking for codes... 404 - not found. Looking for swearing words... *Ping!* 3 results found.