-
Posts
851 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Noki
-
its not easy. i don't this anyone scripting for free Adding that onto the risk of you not actually paying at the end... Good luck finding someone.
-
"Wheels" isn't defined. I don't know why you're looping that. Can you please post the exact debug?
-
Search 'save system' on community.multitheftauto.com.
-
What gamemode do you want?
-
@ myonlake: Thank you for your help. I appreciate it. What functions would I use to do that? What if I wanted to create relative dx? Would I still be able to use your method of 2D pixels? @Hypex: I was going to do that with a CEGUI and create dx over it. But, I couldn't set the main window's alpha without it affecting its' children.
-
function dxCore() bRecWin = dxDrawRectangle(507, 288, 264, 145, tocolor(67, 187, 157, 198), true) wRecBtn = dxDrawRectangle(553, 321, 185, 66, tocolor(255, 255, 255, 255), true) text = dxDrawText("Close dx GUI", 577, 340, 721, 372, tocolor(0, 0, 0, 255), 1.00, "default", left, top, false, false, true, false, false) end function openDxGui() addEventHandler("onClientRender", root, dxCore) showCursor(true) end addCommandHandler("dxgui", openDxGui) function closeDx() removeEventHandler("onClientRender", root, dxCore) showCursor(false) end addEventHandler("onClientClick", wRecBtn, closeDx) So, this is my first crack of a dx gui. I want to just get the hang of making them. I just want it to be able to open and close via a button. I will figure the rest of it out. I've been stuck here for a while now. I honestly have no idea what I'm doing here.
-
@Anubhav, you have NO idea what he is talking about. Please stop trying to teach people and learn yourself. You will need: showPlayerHudComponent getElementPosition setElementPosition dxDrawImage Event: onClientHUDRender or onClientPreRender That's only to name a few.
-
There is a default resource that comes with MTA called 'scoreboard'. I am not sure exactly what you're asking, either. If you want to add columns on the scoreboard, you will need to use a given export. To set data for that column, use setElementData. If you want an alternative scoreboard, you can always look around on community.multitheftauto.com and try your luck. mtamarket.com is a good place to get scripts made for you. I hope I was able to be of assistance.
-
You think organising the community and some development would be good before advertising your server? Anyway, CS 1.6 is legendary. You have a lot to live up to. Best of luck.
-
No, not running MTA from your client. Running a dedicated server... :facepalm: I recommend using Centos (Linux). Linux servers always perform faster than Windows servers as Linux (except for Ubuntu and its children) are command-based and have less of a UI. That conserves vital CPU usage. But, if that is too complex, Windows Server 2008 R2 should do the trick. CIT uses that, and they have 1000+ players.
-
Adding onto what ixjf said, the MTA Team always wanted MTA to be lightweight. They have done a good job of maintaining that throughout the versions...
-
Jusonex and ixjf are right. On another note, almost anything you can do with an .asi modification can be done with MTA Lua scripting. Shaders can be used to improve graphics with a lot less lag than an .asi file (from my experience). HUDs can be remade with MTA's dx functions. If you wanted the freedom of .asi mods, you'd find a lot of people abusing that for cheating. On the note of cheating, some mods may conflict with the built-in anti-cheat system. Mantis is your friend. Use it and try your luck.
-
Nice job! Really professional and good looking. I wish you the best for this. I also recommend having different dimensions for different terrain. So, one dimension can be for Normandy, another for the Philippines, another for Germany and another for Pearl Harbour. That would be awesome! One shot one kill too! Oh, I am so damn excited right now.
-
That's not really a tutorial. You are lacking detail. A fundamental piece of a tutorial, is the 'why' explanation. You didn't explain why you used a local variable, and so forth. I'm taking that your tutorial is made for newer scripters. But, how can this help newer scripters if you don't say why you do things? Good luck next time.
-
Your code is very, very messy. How are we supposed to help you if your code is hard to read? What is your question again? Do you want ideas for nemesis? Well, you can always head over to another board (this one is used for helping people correct their scripts etc) and someone may have a good idea for you.
-
I have tried, but it still outputs debug messages. It says there are bad arguments on 'isPedInVehicle' and 'isPedOnGround'. Once again, all help would be much appreciated, and you will be rewarded.
-
You can always use wiki.multitheftauto.com/wiki/smoothMoveCamera to help you.
-
function dataChange() if getElementType(source) == "player" then local px, py, pz = getElementPosition(source) setElementData(source, "Money", getPlayerMoney(source)) setElementData(source, "City", getZoneName(px, py, pz, true)) end end addEventHandler("onElementDataChange", getRootElement(), changeData) I tried using a timer, but I just get debug spam. I did put 'source' in the timer function argument bracket. I just want to make it sync faster, as there is currently a 5 second delay. Also, when using getZoneName, it only works when the ped is touching the ground, but I want it compatible with planes etc. Is there any way to fix my problem? Thanks. Edit: I'd like to keep it server side, but I'm happy to do otherwise.
-
It is client side, but I am willing to change it, so long as it works. getPedOccupiedVehicle was for an earlier check, so I didn't use it.
-
I still need help. It still won't work, and returns bad arguments on isPedInVehicle and isPedOnGround. I've tried everything.
-
Player health and armour would be great!
-
I was just realised I put position instead of dimension... Amateur mistake. Thank you, anyway.
-
Hello, I made this AFK script (client sided) and I cannot get it to work. It just returns bad arguments at 'isPedInVehicle' and 'isPedOnGround'. local theVehicle = getPedOccupiedVehicle(localPlayer) function afkCommand(localPlayer) if isPedInVehicle(localPlayer) then outputChatBox("You must be on foot to use this command.", localPlayer, 255, 255, 255) elseif isPedOnGround(localPlayer) then if (getElementPosition(localPlayer) ~= 0) then outputChatBox("You will be AFK in 5 seconds", localPlayer, 255, 255, 255) setTimer(function () setElementDimension(localPlayer, math.random(10 - 1000)) setElementFrozen(localPlayer, true) end, 5000, 1) elseif (getElementDimension(localPlayer) >= 10) then outputChatBox("You will be returned to the main dimension in 5 seconds", localPlayer, 255, 255, 255) setTimer(function () setElementDimension(localPlayer, 0) setElementFrozen(localPlayer, false) end, 5000, 1) end end end addCommandHandler("afk", afkCommand) If someone could help me, or guide me in the right direction, I'd much appreciate it. Thank you, MTA community.
-
Contact the original creator of the script. Wrong board, anyway.