-
Posts
2,973 -
Joined
-
Last visited
-
Days Won
3
Everything posted by 50p
-
playSound is a client-side function and only player who called this function will hear the sound. You have to tell the server (triggerServerEvent) to tell all the clients (triggerClientEvent) to play the sound.
-
Can you specify better what do you mean by "not enough project manager"?
-
Well, check the guiCreate.. function parameters. If relative is true, x, y, width and height must be values between 0 and 1.
-
If the table is created outside any function, you will most likely get nil. Make the table global first and then create the elements in a function which is called by an event, like onClientResourceStart.
-
It will not make any difference but you may find some people on the forum who use it (like myself) because they are used to other languages that require it.
-
That would change the label colour, same as guiLabelSetColor. Just create a function which will create as many labels as many colours you have in the string. There is a similar function for DX text on the forum somewhere, just search the forum, I'm sure you'll find it easily. Then just modify the function to work GUI labels instead of DX text.
-
It seems like all you want is the complete script. You seem to ignore the hints. Oh, your for loop will play 1 song 19 times at the same time (it will be louder 19 times). Use break to stop the loop. You have to stop the sound element returned from playSound, not the string representing sound path.
-
Why do you use for loop to play all the music? Re-read my previous post again.
-
This is not the way to stop the music. You must stop the element returned from playSound/playSound3D. Eg.: mySound = playSound( musics[ "Music1" ] ) -- to stop it: stopSound( mySound )
-
Long time ago I made a patch for that. I wrote onClientSoundStop and onClientSoundPlay with arguments but it was never amended. The only way I can think of is creating your own events, setting a timer at the same time as starting sounds, timer will trigger the sound event. Use getSoundLength to get sounds length and the interval for timer.
-
Okay thanks, we can change this limit? Nope.
-
There is no object limits. There is element limit which is 65536, unless it has been increased. This includes players, peds, vehicles, objects, custom elements, etc.
-
No, it will be annoying, because if you want edit any resource file you have to restart the editor I don't know if you know but MTASE has tabs. I could hide RE (Resource Explorer) when a tab with a file not included in any resources is opened, show RE when tab with a resource file is opened. I just need more ideas. I think it's quite simple, when you connect the software in the resource explorer you can view the resources list like you see it in your local server, you can search in google some codes. Then for the files is quite simple too, you download it in a temp folder, and then, when you save the file a popup comes out asking you if you want upload it back, if you select yes, you rewrite the file in the temp folder and upload it in the server, and then delete it This is exactly what I was saying. Similar to Dreamweaver.
-
Thanks for the feedback. 1. I thought of a way to associate MTASE with .lua files but then I didn't know how to handle it. Since, there is a Resources Explorer on the left which lets the user know which resource the opened file is in and which file it is. I just don't know of the best, the most friendly way of doing it. I might hide the entire Resource Explorer for the time of editing some external Lua file. Suggestions? 2. I've had that problem for long time.. I'll look into that. 3. The FTP feature has been there since the first release if I remember right but I have never finished it due to the same reason, don't know the best way of controlling the files/folder on the server, especially now when resources can be in any folder in ".../resources" folder, not like it used to be when all resources where in the same folder. Maybe separate window? And a possibility to open files located on the server and send them back when saved? I've never written any FTP client before and this will be my first one but organization is the key, keeping everything clean and clear, user friendly (this is my goal). It does, but if you create a new file but don't add it to any resources, it won't work. It's a known bug but forgotten. You have to select resource from Resource Explorer first, then create new file, it will ask you if you want to add it to the resource, hit Yes. There is also a known bug: when you create a new file, the function suggestion list will not pop up at all. Just close the file and reopen it from the Resource Explorer.
-
Check what addAccount returns. Does your script get to the "Witaj ..." message?
-
Do you want only 1 skin to be allowed to drive the vehicles? Or only specific vehicles to be driven by 1 team? Like, police officers can drive police vehicles? Your if statement won't work.. Use "debugscript 3" command and try to run this script. You have to remember to debug your scripts, that is the most important action during scripting. Nobody scripts without debugging. I don't really understand your question.
-
https://forum.multitheftauto.com/viewtopic.php?t=15151
-
MTA:SE 0.2.9.6 released The new release includes the following changes: This is still not what I wanted to release as 0.3! This release is mainly a fix to make MTA:SE work with MTA:SA 1.1. Bare in mind there are still features in WIP state.
-
Firstly - hello, and sorry for bumping (I think it's few days, but it's always bumping). I'm starting to learn an Lua language and starting play in MTA. But it's not thread to welcome. I have same problem like user, who's be quoted by me. My PC work under Windows XP Service Pack 3, when I try to put a folder with MTASE whethever on disk, the program scream But I've already installed an MTA in folder "C:\Program Files\MTA". I try do it same, like here, but MTASE still don't work. Sorry for my crappy english and please 50p, fix this or I dunno, make a installer for this app or something. Regards. Thanks for the comments. Like I posted previously Dystans and nazi19, this problem has been fixed in my next release (read that post below). Due to December being very busy month for me, I haven't finished fixing the most important things yet. I want the next release to be as bug-free and integrated with MTA as possible. It's an IDE (Integrated Development Environment), so it has to simplify entire process of scripting resources and testing them. I also, want to let the scripter (server hoster) to speak with the players who are connected to the server, without the scripter joining the game but this is plan for future. At the moment, I'll just have them all on the list. You can still open the resource folder in Windows Explorer by clicking one of the Resource tools (above resources drop down list). Currently, I'm working on a Meta.xml editor that will let you modify resource properties (eg. add existing files/scripts). This is a list of what has been changed/added in the next release: Now, it seems integrated with MTA even more. Like I said above, currently I'm working on the Meta.xml editor to let users change their resource's properties, add existing files, export functions, etc. There are some things that will have to get fixed too. Be patient please Thanks to everyone who still have faith in me
-
Maybe: https://wiki.multitheftauto.com/wiki/MTA ... _save_file
-
x64 what? I run Windows 7 x64 and I don't have any issues. Maybe I have changed some things in some .dlls that have to be updated. I'm not going to update any .dlls that are used by MTASE until I release new MTASE (which will be 0.3).
-
Yes, isn't that what author of the topic wanted? MOJRM-511, you're welcome. Have fun scripting and don't hesitate to ask here or IRC.
-
Since the event is triggered every time mouse moves over the GUI element. I suggest you use onClientMouseEnter instead which is triggered only when mouse enters the gui element bounding box. That is: addEventHandler("onClientMouseEnter", root, function() playSound("sot.mp3"); end)
-
Your resource is hard-coded now. This means if you want to add another resource that you want to restart after certain amount of time, you have to modify the code. Make it so you load xml file, like before. Make sure the .xml file is added to meta.xml as and try to use getResourceConfig instead. You can still use xml functions with returned value that is xmlnode. I've always preferred to use this instead of xmlLoadFile. You have to remember to use xmlUnloadFile when you're finished with reading the file.
