-
Posts
369 -
Joined
-
Last visited
-
Days Won
4
Everything posted by WorthlessCynomys
-
You have to put the variable of the table in ipairs.
-
I thik, factionTable is your table and factionDuty is the variable you want. Now... factionDuty is in ipairs() where factionTable should be. Your error message said that ipairs has a nil, not a table.
-
That is right. Pressing E in editor, puts the cursor in a "sensitive" mode, which allows you to select object with smalles collissions. But still, there are some objects, which collission is so little, you can't select them with "sensitive" mode either. Then you have to use the script i sent to you.
-
Thank you but I can't select object so idk modeld radius x y z I assume, you haven't opened the link. You can click on any point of the GTA map, and it will show you the pictures, and detailed information about the objects in a radius. After that, you look for the object (based on the pictures) and find it.
-
addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() removeWorldModel(modelID, radius, x, y, z) end ) Put it in a server side script, look for the ID of that fence, for example here, fill out the arguments, start the script, when you go to test mode in editor, it'll do the magic.
-
I'd make a table on client side, which contains all your resources and a state, and when a resource has downloaded, I'd set it in the table, then run a check to see if every resource is downloaded, and if that comes back true, I'd show the login panel. So I imagine it like this (of course there could be a better solution): resources = { firstResource = false secondResource = false } addEventHandler("onClientFileDownloadComplete", root, function() local resourceName = getResourceName(source) for i, v in pairs(resources) do if (i == resourceName) then resources[i] = true end end for i, v in pairs(resources) do if (v == false) then ready = false break else ready = true end end if (ready == true) then -- Make your login visible end end ) NOT TESTED
-
Wow... this got me... I'll think about it and if I got something, I'll write. What if you store the timers on the server, so when you trigger the createPed event you can send the timer, get it's details, get how much time is remaining to execute and then set the timer for the new player with the remaining time?
-
Well... you don't have to add the basic events of MTA. I'll look at your code from PC. I'm on mobile, so it's hard to read such a long code.
-
By updateing timer, you mean that you set the timer for the new player so it's 3 seconds, cuz 2 has passed, the ped will be destroyed after 3 seconds for the new player too?
-
addEventHandler("onPlayerJoin", root, function() setTimer(function() triggerClientEvent(source, "createPed", resourceRoot) end, 5000, 1) end )
-
Maybe this can help you.
-
Hello. I would solve this by storing the bed in a table for example and when a new player joins, trigger the createPed event for that playee with all the peds in the table, with a for loop maybe. It is important, that you have to delay the trigger, since client side scripts has to start when the player joins, unless server side events, which run immidiately.
-
So... there are a lot of ways, you can make a Gang system with territory, you can use grups, element data, sql, acl and the method depends on the environment you make this system. So... think a bit more about this, explain it and then you might get HELP.
-
Look around on MTA WIKI. You'll probably find the solution, if there's one
-
Hello. Is it possible to make a script that records your movement and then makes a ped do it after you? The exact same thing? Because I tried to do that, with 3 or 4 methods, but the closest I got was like a 5 meters miss at the end of the replay.
-
Well... sprintfast is a bug, that they fixed and made you able to turn it back on. With setting the sprint control on and off, you can reach a nice, high speed but i don't know of a function that could set the actual speed that the player is running with.
-
Hey... i was like, i don't reply cuz it does not help you, but... i don't think it is possible.
-
[LF] To learn LUA scripting and a guy to help me all the way.
WorthlessCynomys replied to mgdmgd's topic in Scripting
I can help you too a bit if you want. But I'm more like a Discord guy. -
If I were you, I'd make a script on client side, with what I'd check the vehicle's turn velocity on it's y axis on every frame, and if it's bigger than X then apply a little bit more to it. The other thing. Turn velocity is basically spin. So resetting that means you set it to 0. getVehicleTurnVelocity() setVehicleTurnVelocity()
-
Well... you go on this site, find the object, click on it, details, and it will tell you which txd is it in. You find these txd-s in gta3.img which is in the san andreas folder. You can open .img file with spark.
-
You replace it just like a car. The only difference is, that you don't replace a DFF now, you replace only a TXD. But yeah. The method is the same, with your edited txd.
-
You'll need txd workshop and a txd file for that. Open the txd file with the txd workshop and replace the billboard you want with the png. The texture's name must not change. After that, save the txd file, and import it on your server. The billboard will be your png.
-
Hy. Would you please give further information?