-
Posts
2,973 -
Joined
-
Last visited
-
Days Won
3
Everything posted by 50p
-
You can make the command server-side, get the players close to the player who typed the command (you can create colshape and getElementsWithinColshape or get distance between players) and triggerClientEvent for those players.
-
onPlayerLogin passes 2 account arguments to your function. You can use them instead of getPlayerAccount. theCurrentAccount will be the account player logged into. You can then use getAccountData( currentAccount, "skin" ). And please learn to debug scripts. Debugging scripts will help you so much that you won't even have to ask questions here.
-
It's been planned for a long time now but due to lack of time even some basic features are missing or bugged.
-
Before you get/setAccountData, you should check if player's account isGuestAccount.
-
1. MTA functions highlighting isn't yet supported, only Lua functions. 2. If you mean the side of the window functions list, yes, it's not fully working as I want it to work. 3. Yes, it doesn't work (not implemented) 4. In 0.2.8 you can rename files. If you're using 0.2.8, what do you mean rename files? In the Resource Explorer itself or on HDD? 5. Yes, they are not being saved due to lack of time on my hands. 6. All the file related issues will be fixed as the last ones because I have to fix the syntax library we're using since the author of it has been inactive for ages... Fixing libraries that aren't written by you is pain in the ass since you have to find the code that is bugged which you don't know where it is located. Also, what security popups do you mean? What is not needed in your downloads folder?
-
Unfortunately, I don't have Windows 7 nor Vista (have never ever used any of them) so I can't test it and find out what is wrong but the only reason I see why it's not saving is the lack of admin rights (that's how other users found out).
-
You can use MTA: Script Editor where you can click and drag image or sound file into your code which will generate the string for you.
-
It's not, but it can be, https://wiki.multitheftauto.com/wiki/SetSoundMaxDistance Unless, there is a limit which I don't know of.
-
This was FreeStateProject's "Spawn UI" (it's very old).. I made completely new one which source code is not fully available.. and yes, you need server-side script for this too. Nec, you will not get code from us... We help here (correct your code, point you to different directions, etc.), not do things for you. Once you come up with some code we can help but don't expect people making scripts for free here, unless you find someone who wants to make it for you.
-
Use [ lua][ /lua] (no spaces) for code! EXAMPLE getPlayerName
-
You can't stream music from other vehicles' radio channel to other players... playSound3D plays sound file not radio. If you want to attach some sound (sound file you added to your resource) then use these: - onClientRender or onClientPreRender - to get vehicle's position and set the sound position to vehicle's position every frame - getElementPosition - to get vehicle's position - setElementPosition - to set sound position to where the vehicle is (coordinates returned from getElementPosition)
-
Don't make multiple topic to ask the same question! How can we help you if you don't give us code to help you with? It seems you want us to write it for you but if you're willing to do it yourself then you should have a look in onPlayerChat event. There is a sample code which does what you want... Bookmark MTA wiki site because you're going to use it everyday many times.
-
so would it be like this ??: function onPlayerlogin ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local elementmodel = getAccountData ( playeraccount, "Skin" ) if ( playerSkin ) then setelementmodel ( source, playerSkin ) and this should work ?? but i used basicly the same layout for the skin to save and checked the account folder and it did actualy save it??? but still wont load it thanks for the help mate Scripting seems to be hard for you and your first scripting/programming languages... I can see you losing more nerves on scripting than your life complications. You will learn everything you need to know to start scripting for MTA: https://forum.multitheftauto.com/viewtop ... 91&t=25032 It may take you a day or 2 just to understand scripting concept but it's worth it. Tip of the day for you: setelementmodel is not the same as setElementModel.
-
1. Please use [lua ][ /lua] (no spaces) tags and paste your code between them so it will look something like this: addEventHandler ( "onPlayerlogin", getRootElement ( ), onPlayerlogin ) 2. Your last line of the script (the one I showed here) is wrong... it's not "onPlayerlogin" it's "onPlayerLogin"
-
DO NOT name variables the same as functions! Gamesnert example should work. I think you're doing something wrong if it doesn't work, manuelhimmler.
-
Make one yourself then (addEvent). Scoreboard updates the column by itself. All you need to do is add new column (you've already done this) and setElementData with the same key as the column name.
-
What getPlayerName function does? Hmm, I don't know, do you? And if you could read what I say you'd know what onClientPlayerWasted is.
-
Why did you use server-side event and triggerClientEvent when you have the same event client-side https://wiki.multitheftauto.com/wiki/OnC ... ayerWasted (read the description at the top)
-
Show your code and we'll tell you why it doesn't work... also don't forget to say in what way you want it to work. Here is example script for peds: https://community.multitheftauto.com/index.php?p= ... ils&id=234
-
you should change outputConsol to outputChatBox. than they will be fixed. What pills do you take? acp___(PL), what difference does it make? See any difference? Different outputs?
-
Helpmanager has some exported functions that you can use in your resources... https://wiki.multitheftauto.com/wiki/Res ... elpmanager Scroll down the page and you'll see addHelpTab which returns tab gui element. You can then use it as parent for your own gui elements.
-
Tell them to press F1. Respawn in the death place was removed because of spawn killers... Once you died from someone's gun there was little chance to live again because he killed you straight after you respawned.
-
vehicleList[source] = getPedOccupiedVehicle(source) How can this be valid in onPlayerSpawn event? Because of this, if statement on line 9 will always fail.
-
248 2.48 Don't you see any similarities? How about moving decimal point to the right by 2 places? Do you remember basic multiplications by 10, 100, 1000, etc.? Look in there https://community.multitheftauto.com/index.html?p ... tails&id=5 You will find out what I did to display speed.
-
What did you delete? Have you debugged it? Debugging will help you find and fix your problems.
