![](https://forum.multitheftauto.com/uploads/set_resources_22/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
pa3ck
Members-
Posts
1,141 -
Joined
-
Last visited
-
Days Won
7
Everything posted by pa3ck
-
Hey. After spending a good few minutes trying to solve my problem, I found out that getElementsWithinColShape isn't working client side for some reason. It works perfectly fine on server side though... I guess it's a bug, isn't it? addCommandHandler ( "ttt", function ( ) local x, y, z = getElementPosition ( localPlayer ) local sphere = createColSphere ( x, y, z - 1, 2 ) local vehs = getElementsWithinColShape ( sphere ) outputChatBox ( tostring ( #vehs ) ) -- always 0 client side, but I get the correct number of elements server side. end)
-
If you're using attachElements, don't bother using getPositionFromElementOffset.. Just use: attachElements ( obj, obj2, 0, 0, 3, 0, 0, 0 ) -- x, y, z, rotx, roty, rotz
-
Hey. I used to use MySQL instead of SQLite but I gotta use SQLite this time. I'd like to know how to get the last auto_increment value? I know I can count up the data and get the value but I'm sure there's an easier way. In MySQL it's: local query = dbQuery ( connection, "SHOW TABLE STATUS LIKE 'theTable'" )
-
Thank you for your answer! I would love to see something like attachElement. Well done!
-
Thank you, it does work, unfortunately it doesn't return an element, attachElements cannot be used..
-
Well, just found out it gets created, the element is there, but you can't see it. Sometimes you can see all of them, sometimes you can only see 3 or 2 coronas...
-
Hey! I was making an indicator / blip system and I found out that coronas are buggy, because sometimes they just won't be created. Here's my really simple code: local veh = getPedOccupiedVehicle ( localPlayer ) local ind1 = createMarker ( 0, 0, 0, "corona", 0.1, 255, 65, 0 ) attachElements ( ind1, veh, -0.85, 2.48, -0.33 ) local ind2 = createMarker ( 0, 0, 0, "corona", 0.1, 255, 65, 0 ) attachElements ( ind2, veh, 0.85, 2.48, -0.33 ) local ind3 = createMarker ( 0, 0, 0, "corona", 0.1, 255, 65, 0 ) attachElements ( ind3, veh, -0.7, -2.7, -0.14 ) local ind4 = createMarker ( 0, 0, 0, "corona", 0.1, 255, 65, 0 ) attachElements ( ind4, veh, 0.7, -2.7, -0.14 ) Is it an MTA bug? Can I do anything about it?
-
Okay, thanks for your help. 'If you don't know the basics, then don't use it'. Well, I got a better solution, look it up and learn it. Of course I have a VPS... Anyways, thanks for your quick answers bud!
-
Sounds pretty good... but the problem is I'm not that good at these things... How would I do that? I'm really sorry, for being such a noob... but you know...
-
All right. If I link it to that folder, would it affect my servers internet usage? ( not the web server, but the one that runs MTA ).
-
Ah! I misunderstood it... So I will only need to upload the downloadable content to my webserver... Thanks MIKI!
-
Hey! I would like to ask a question about 'httpdownloadurl'. I got some cars, skins and building textures and I don't want my server to be lagy, so I want to use an external FTP server for downloading them. My question is, will I need to upload all of my resources there? If I want to edit them, will I need to edit them on my FTP server? Thanks in advance!
-
@ Sasu Yes, I did. I used these 2 simple lines: guiSetProperty ( gridlist, "ColumnsMovable", false ) guiSetProperty ( gridlist, "ColumnsSizeable", false ) But it says bad argument, it's looking for strings. I tried "false", but that won't change anything, thanks though. @IIYAMA I'm using my own weapon damage system, so when you get shot with sniper for example it takes off 100 off your health, I think that was the problem, thank you! Didn't get a chance to test it though, gonna test it today.
-
Thank you for both answers! @dugasz Rows and Columns return numbers, they're not an element, so guiSetProperty cannot be used here ( thanks anyways! ) @IIYAMA Thanks buddy! I used to use setElementHealth ( element, 0 ), so that might be it. Also, I have an animation cancel bind, which lets you cancel the current animation using "empty" setPedAnimation. Do you think it would affect it? Should I use setPedAnimationProgress w/ any anims? Thanks! EDIT: I see there's 'ColumnsSizable' and 'ColumnsMovable' settings for guiSetProperty. AFAIK, guiSetProperty requires a GUI element, but rows and columns are not elements... How does it work?
-
Hey! I got 2 questions ( actually ) here. First one is, is there a function for setting the color of a gui column? The second one is, I'm experiencing a "death" bug. I'm building my own RP gamemode and I'm using setElementPosition for my teleport commands. Sometimes I see people fall and die, but they don't actually die... They can't see it themselves, same thing happens to me. They see me "dying" but I can't see it myself... Right after they / I die, they / I just get up and walk forward... Is it a bug? Thanks in advance!
-
What, why would you need my script? Anyways, I solved it, thanks though. I just added the kick and ban command to the group "Default" ( as I'm not using the default admin resource at all. )
-
Hey there. I wrote my own admin and kick system, but I can't use /kick if I'm not logged into ACL. Is there any way solve this?
-
Hey there. I'd like to connect my server with a PHP script. How can I send variables to PHP? EDIT: Just found the answer.
-
I mean, the server side itself, is it being downloaded to the RAM? Is it safe to leave it uncompiled?
-
BTW, what about server side files? Are they being downloaded to your RAM as well? Would I need to compile them?
-
So is it safe to leave the scripts uncompiled but cache set to false?
-
Hiya. I tried setting client sided lua files' cache to false. I thought I'll need to download it every time I join the server, but I can't see the progressbar, the small downloading indicator... It does work though, I can't find the files in my mods folder, I'm just curious, how does it work?
-
Perfect, that's what I was looking for. Thanks!