-
Posts
1,423 -
Joined
-
Last visited
-
Days Won
19
Everything posted by Tekken
-
You want to COPY a server resources from what I can understand and this is illegal and we don't allow it!
-
You use newnr if it's not the same as the lastnr if it is the same you just redo math.random to have a different one
-
at the top of your script add this math.randomseed(getTickCount()); This will make it so the resource won't output the same random numbers every time it's restarted!
-
You can with OnClientPlayerWeaponFire
-
You mean it outputs two times the same number in a row? If so you can store the old number in a variable and check if is the same or not and store the number in var again. Something like this: local lastnr = math.random(0, 9); function generatenr() local newnr = math.random(0, 9); if newnr ~= lastnr then print(newnr); lastnr = newnr; --overwrite old nr else generatenr();--recall function if the same nr end end
-
You want to have multiple weapons on the back at the same time?
-
You just replace « true/false » with a table or a number or a string or anything you need.
-
Decrease iK_v each time the script runs ? Until it becomes 0 and then stop?
-
Exactly what I gave you from the beginning ! Glad I could help
-
Replace itemPlus with (itemPlus or 0) if you want to ALWAYS be at least 1 replace the 0 with 1 That should do it
-
Well what is the problem explain properly please?
-
If you’re new I suggest you to take a look here: Once you have all that good you can start making little scripts by following the Tutorials section here: https://forum.multitheftauto.com/forum/123-tutorials/ Wish you luck!
-
Hi, first of all we are here to help not give you all done scripts! Keep that in mind! Second of all there is the resources section for requesting resources! Have you tried searching on the community? https://community.multitheftauto.com/index.php?p=resources&s=details&id=3290 Also there is a parachute resource provided by MTA when installing server!
-
itemPlus = itemPlus or 1; Where does the error occurs ?
-
So let’s say your item costs 5 and in the edit box you enter 3 so all you do is itemPrice * guiQuantity; (in our case 5 * 3 = 15) also you should do if the editbox is empty guiQuantity = 1;
-
In teorie nu ai nevoie de nimic de acolo pentru a face un gamemode de la 0, insa ai in acele resurse anumite chestii fara care jocul nu merge e.g resursa reload, daca nu o ai pe server nu poti da reload la arme, insa nu esti obligat sa o folosesti, o poti construii sau pune direct in gamemodul tau! Daca ai nevoie de sfaturi/ajutor poti oricand sa mi dai un pm!
-
You can do setElementData to a colshape
-
save(setting) -- there is no argument in that function function save(ARGUMENT) --add the argument here: if ARGUMENT then --check if exists; local file = fileOpen('save.json') or fileCreate('save.json') local file = fileWrite(toJSON(ARGUMENT)); --write to file; -- you should maybe save the file also ?? fileClose(file); end end The same for load() function I don't understand what it is that you want to write to the file?
-
for muscle and other stats you have setPedStat ???
-
You will have to use this function: https://wiki.multitheftauto.com/wiki/SetWeather
-
If you are looking for an already made script you are in the wrong section, if you want to make one you will have to use: https://wiki.multitheftauto.com/wiki/AddPedClothes P.S go to resources section for already made!
-
define table: local table = {}; player joins: table[player] = 0; when a player kills another: table[killer] = table[killer] + 1; To see how much he have: outputChatBox(tostring(table[playerYouWantToGetKillsOf])); You store them when they kill someone, those are not stored by default so there’s no getPlayerKillDeaths
-
You can use tables to store k/d way faster.