-
Posts
4,144 -
Joined
-
Last visited
-
Days Won
1
Everything posted by dzek (varez)
-
probably one of resource are using much CPU - try to disable them one by one and spot which one are causing this
-
http://convertffs.com/ - try this one. i never used this, but ppl says this is working thing
-
Can't access wiki
dzek (varez) replied to mickdermack's topic in Site/Forum/Discord/Mantis/Wiki related
just a server name. effectiveservicemethod.net was a hosting company afaik. they've used that ip someday ago. this domain is no longer active. -
which one? look at these lines: function remotePlayerJoin() function build_main() function showClientImage() function defined inside a function inside a function. afair - it's not invalid in lua, but well, you don't need it. you never trigger build_main() for example, also there is just a mess in this. Better read these tutorials and do one by yourself.
-
Can't access wiki
dzek (varez) replied to mickdermack's topic in Site/Forum/Discord/Mantis/Wiki related
after googling for few minutes i can see that on that ip there was another site someday, chinesse one (there was some statistics somewhere saying that about 70% of all chinese sities are infected with viruses!), also on that ip there was few malwares, trojans hosted. this ip have just a bad history. -
Read this: viewtopic.php?f=91&t=27027 Also the syntax is TOTALLY WRONG! Get back to basics: https://wiki.multitheftauto.com/wiki/Scr ... troduction How to make GUI's: https://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI
-
moving to Maps->Support section. i think it belongs there more than Scripting.
-
Debugging can help you much faster that us. You said so I assume that problem is in client side.So now comes debugging: addEventHandler("onClientGUIClick", btnLogin, clientSubmitLogin, false) function clientSubmitLogin(button,state) outputDebugString("button: "..button.." state: "..state) if button == "left" and state == "up" then local username = guiGetText(edtUser) local password = guiGetText(edtPass) outputDebugString(username.." --- "..password) if username and password then outputDebugString("if passed") triggerServerEvent("submitLogin", getRootElement(), username, password) guiSetInputEnabled(false) guiSetVisible(wdwLogin, false) showCursor(false) outputDebugString("all above didnt make script stop, becouse this is showing in debug window") else outputDebugString("if failed") outputChatBox("Please enter username and password.") end end end you need to input in console "debugscript 3" to open debug window, but well, you need to be admin to make that. also you can use simple outputChatBox instead of outputDebugString, but be sure to remove them all before putting this in public.
-
This is ENGLISH language forums! Use english when posting, especially when asking a question. If 99% of us can't uderstand you - how you can expect an answer? From these message i think you want music to be played on player join - you can use my resource to achieve this.
-
yes, also any events you will create in one resource can be triggered by another resource
-
Can you translate it to English? Forums will become a mess if all resource will be in different language. Keep Turkish, but also post English translation. Otherwise only few ppl will use this.
-
as it's described - press accelerate and reverse/brake key at the same time, and after bar gets full&red - stop holding brake, keep pressing accelerate key. in gta default bindings you can achieve this with W+S key or UP+DOWN keys
-
Can't access wiki
dzek (varez) replied to mickdermack's topic in Site/Forum/Discord/Mantis/Wiki related
hmm, if you can't connect to this - it looks like really something is blocking that ip. this is ip of wiki. red reputation? hm, there is something about - WHY? -
Line 55, 56 - should make that window visible, 50p. Or am i wrong?
-
Well, You are confusing something. LUA is not something connected with game/psychics/or just "possibilities". If Gmod have Lua as it's scripting language, it doesn't mean you can do same thing in MTA. All these possibilities can't be done just with Lua. This is not good explanation but i can't get better - to make it simple to understand. These magic "things" are done by C++, Lua just tells which C++ function you want to trigger - to make scripting easier, so you don't have to write each resource in C++ - they've used Lua.
-
cant spot the error by just watching the code in browser but you are creating login window twice (there are to onClientResourceStart handlers, both are firin function that is creating window, but 2nd one is doing something else too)
-
Somebody have already complained about this bug about 2-3 months ago. Not sure if mta team knows about it (bug tracker is down). No useful workaround comes to my mind now.
-
1. you never fired setBinds function 2. playSound is client side while you have used bindKey in server side syntax. I Don't know which one you set in meta.xml 3. Why did you create new topic when you have already posted topic about these sirens? Also i gave you bigger reply, and i listed all functions you will need to use to make your script work like you want it to. you used just two of them. 5. And i think you are very bad at lua. Go to wiki.multitheftauto.com and read scripting tutorial once again. Also read about debugging - you will need it many times. Keep reading until you understand it. If you don't understand the basics - don't even try to write scripts - you will just keep failing and getting angry
-
Can't access wiki
dzek (varez) replied to mickdermack's topic in Site/Forum/Discord/Mantis/Wiki related
can you open this: http://76.191.104.190/ -
@UAEpro: Cool, somebody stolen my script and pretend to be made by him whatever, he can die in hell @XX3: Well, I did it for my own server. And as you can read there I wanted to give away everything I have done. I haven't seen such script yet, so I released it few days ago (several hours later there was another script like this one released). But I wouldn't release it so fast (lazyness FTW! ^^) - but I suggested to use part of code of this resource to creator of GUI PM system (there is topic about it in Resources) - that's the main reason of releasing it. @JesseUnit: I'll tell you a secret. I'm going to release new gamemode.. someday (don't have much time, but the main idea and parts of scripts are ready - in my mind ) Hope it will bring much fun to MTA players. .. And hope nobody will steal it:P
-
What? The resource? Same way as other resources? Download it into resources folder and start it?
-
okay, i knew you just can't do that and don't see the problem. way too hard. you also posted another topic with stolen script. even [DMC] knows from where you stolen it. nice. we don't support this way of obtaining scripts. it's not nice. really. topic locked. don't even try to steal somebody's work!
-
post whole script. HERE.
-
if this will be done only clientside - only one player will hear it you need a table (serverside) where you will be saving which car have sirens on, bindKey (serverside), triggerClientEvent (serverside), addEvent (clientside), addEventHandler (client side), table where you will be saving which car have sirens, and that sound variable (to be able to stop it), attachElements (to attach sirens to vehicle). probably thats all. not sure.
