![](https://forum.multitheftauto.com/uploads/set_resources_22/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
Dealman
Members-
Posts
1,421 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Dealman
-
Anything in debug?
-
Are you sure the image is being created? Does teleport.png exist?
-
Because the function openGui is never executed, thus, the GUI doesn't exist when you try to show it. Try this instead; function openGui() myWindow = guiCreateStaticImage(109, 53, 411, 267, "teleport.png", false);guiSetVisible(myWindow, false); -- Create the GUI when the resource is started, but hide it. myButton = guiCreateButton(23, 83, 80, 27, "Arena 1", false, myWindow); end addEventHandler("onClientResourceStart", resourceRoot, openGui); function guiOpen() if(guiGetVisible(myWindow) == false) then guiSetVisible(myWindow, true); showCursor(true); else guiSetVisible(myWindow, false); showCursor(false); end end bindKey("F2", "down", guiOpen);
-
I already did, the code's in the spoilers.
-
Sorry for the delay, I had forgotten about this thread... Back to the subject, the issue you were having was that you tried to use the ACL functions on a client-side script. You'll have to use triggerServerEvent and triggerClientEvent to check a client's permissions. I suggest you read up on those functions as well as addEvent. Anyway, I wrote this to provide you with a working(hopefully) example. Client Side: Server Side: I apologize if there are any errors, I haven't tried it. But I'm sure you'll be able to work it out from here on.
-
There's no such thing as having your scripts 100% secure. Personally, I'd recommend both compiled scripts and disabling cache. Then there are always other things you can add to your script to prevent people from trying to run your compiled scripts, such as make sure the server is a specific IP or not. However, the latter is hardly of use if they know how to decompile it.
-
The ACL functions are server side. Your script is client side. I can further assist you when I'm back home, unless someone else does so before me.
-
So what does this even do? It seems to be but a few utility commands you could add in a matter of minutes anyway(Damage proof vehicles, clear chat, join/quit sounds and etc). I wouldn't really call this a RPG gamemode - because it's not.
-
I've made a script which draw frames at around 30FPS, I haven't really had any plans to release it but I might consider it. It uses a lot of separate frames, so it's not the most effiecent. 50p made a script which uses sprites which is far more effiecent. But it does not suit my needs, whereas I need entire background animations.
-
Learn to navigate the MTA Wiki and it will open a whole new world of possibilities. 1. You want to change something when your mouse hovers over an image - obviously, this would be an event - not a function. Go to Client Scripting Events. 2. Images are related to GUI, look at the GUI Events. 3. You want something to happen when your mouse hovers and probably stops to hover an image. You'll find onClientMouseEnter and onClientMouseLeave. 4. All you need.
-
It fails to get the width, thus it will return false. You can't do calculations on a boolean(true/false). With most likeliness the variable v.name is not properly defined or passed through.
-
Not bad, how about adding an option to make it so the text always faces the player?
-
/n alone works too, tried it already. not sure what /r does. Oh yeah, makes sense now - it was for a logging system I was working on. And since I was writing it to a text file - I had to use /r/n since that's what Windows uses.
-
Correct me if I'm wrong but doesn't MTA use /r/n and not /n?
-
Interesting addition, this should come in quite handy for server owners. Great job!
-
Dunno if I missed something but I can't seem to change gears. I've tried all keys and combinations I can think of for clutch + upshift. . and , doesn't do anything for me now.
-
And you obviously know how to, don't you? Anyway, I disagree that using element data is bad. So long as you use it properly, the performance impact won't be too significant. What I disagree with however, is to use it with onClientRender. What people always seem to fail to realize, despite me editing the MTA Wiki - any code you use with onClientRender will be run with each frame. And generally, a game renders 30 to 60 frames per second, depending on your settings. I don't know why you'd have to set someone's data 30-60 times per second...?
-
If you indeed are so inclined of proof, I'll try to record a video for you, since I'm sure photos won't convince you. I'd love to record them running, but have disassembled their carburetors for the typical winter restoration. And new MSD distributors! Camaro's currently in a(small) garage, but I'll try. The Caprice's outdoors so that'll be no problem. As for the update, I might try it again later.
-
Then I stand corrected. I was fairly sure I could hide my login panel's cursor with one of my other resources.
-
Not entirely sure what you're trying to say... If resource 1 enables the cursor via showCursor - resource 2 can still hide it by using showCursor. The cursor is a global thing - it's not tied to specific resources.
-
Read about the function, you'll need to use the offsets.
-
Oh you'd be so, so surprised if you actually knew me. I regularly attend Drag Race events over here in Sweden, down in Sundsvall and where I live, Östersund - and some other events when there are any. So yes, I have seen and heard a real NASCAR in action - have you...? I'm an owner of 2 muscle cars, one with 396cui V8 and the other a 402cui - I know what a V8 should sound like. I know what they're like to drive. I never said it doesn't sound like a NASCAR, but rather the quality of it is as bad as it possibly could be. Of course the cars are loud when you drive with open headers - I've done it myself with my Camaro.
-
Great job! Can't wait to see the final product
-
This is why I usually don't try to provide feedback, because the developer is always offended and has to go super defensive. @Automatic/Manual; Of course I will be trying the manual simulation, I couldn't care less for the automatic. It's in by default, though not simulation obviously. But if I want simulation in MTA - I want it manual, nothing else. @Sound; Reason why I disliked the sound is because the actual audio file itself is terrible, it's far too loud and distorted. It kind of remind of indie racing games from the 90s. It doesn't sound the slightest realistic, Topo has some pretty decent sound effects going on - but I won't be comparing his to yours anymore as you're obviously offended by it. @Bullet; You never listed what vehicle(s) had been changed, so obviously I looked at the replaced models and assumed those were the ones. Clearly, it wasn't. @Simulated Fluids; Sounds great and all, but I find it hard to believe that you simulate this(and what difference does it make?) in MTA - where games such as Forza, Gran Turismo, iRacing, rFactor amongst other true simulators do not(Do correct me if I'm wrong)? @Fuel; I never said nor assumed the fuel consumption is terrible - in fact, I did actually test it while on idle as well as holding the handbrake to increase the throttle - as well as a noticable change whilst driving. You're the one assuming things here, not me. Just because I said "to some extent" it doesn't mean I disliked it. I just don't understand why you would spam it onto the chat rather than display it via on-screen text(or logging, which you might have done) since it makes it easier to read and analyze. I still stand by the point it would be easier to debug by having it visually presented on the screen, as it would be easier to notice changes rather than having to look at the chat being spammed by messages - trying to see if there was a change. But each to their own, if you prefer it that way - by all means. @Recording; Audio is automatically output via a Speaker/Sound Card or USB Device(headset). There's a lot of recording software out there that allow you to change the audio source(aforementioned devices). Not sure what you mean with having none of the needed recording devices Either way, good luck with your project. As I said, it's not bad. But I will not be testing this further as I can not stand people that can not take criticism without being offended.