-
Posts
866 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Mr_Moose
-
playerFromName is a part of root, this means that you first make the element visible to playerFromName and straight after that making the element invisible to all, including playerFromName. Also make sure that you run this script server side only. Try this: addEvent("CreateCaptainMarker",true) addEventHandler("CreateCaptainMarker",getRootElement(), function(x,y,z) local playerName = getPlayerName(source) local playerFromName = getPlayerFromName(playerName) if playerName and playerFromName then CaptainMarker[source] = createMarker ( x, y, z, "cylinder", 5, 255, 51, 102, 85) CaptainAttachedBlip[source] = createBlipAttachedTo(CaptainMarker[source],9) setElementVisibleTo(CaptainMarker[source],root,false) setElementVisibleTo(CaptainMarker[source],playerFromName,true) setElementVisibleTo(CaptainAttachedBlip[source],root,false) setElementVisibleTo(CaptainAttachedBlip[source],playerFromName,true) end end)
-
Nice work, works in all kinds of servers RPG, cops and robbers etc, making it easy for criminals to hide from the law.
-
Basically here's what you have to do: Find an old computer that can be run 24/7, make sure it use Windows 7+ or any linux distro made for servers in general, Ubuntu, Debian, DSL, Puppy or similar. Remove everything that doesn't belong in a server Copy the files from the server folder in your MTA folder under C:\Program Files Start the server and make sure you have access through your computers firewall Forward the ports used by your MTA server to the host computer Use the command: "openports" to verify that the ports are open. That's a free host which may be extremely customized in any way. Questions on that? Then don't run a server.
-
The risk of getting some kind of flood which blocks the ports is probably bigger on a external host. Hosting companies want to make as much money as possible using as low performance as possible, if the problem isn't in your server (i.e bad optimized lua code) then you might goanna look for another host or maybe host by yourself on an old computer if you have any.
-
onClientPlayerJoin will trigger for all clients except for the player that just joined.
-
https://wiki.multitheftauto.com/wiki/Meta.xml study more, my friend NOOB Seriously? How should someone use files which he didn't downloaded? That's impossible if you don't make an own download system. It's a valid configuration but remember, files will be downloaded but not saved on the client, that means every time a player connect they need to download the file again. Setting download to "true" means saving the file on the clients hard drive.
-
You could delete them after they are loaded, however that would require them to be downloaded every time again. look for file write and file reading functions, there might be a way to write a custom bit encryption which "destroys" the files in a way where only your script can fix them quick and reload them.
-
Looks like I forgot to define the player, my mistake, try this: exports [ "scoreboard" ]:addScoreboardColumn ( "Gang",getRootElement() ,40,80, "Gang" ) function getgang(player) local group = exports.groupsystem:getPlayerGroup(player) if group then outputChatBox(group) setElementData(player, "Gang", group) end end addCommandHandler ( "getgroup", getgang )
-
exports [ "scoreboard" ]:addScoreboardColumn ( "Gang",getRootElement() ,40,80, "Gang" ) function getgang() local group = exports.groupsystem:getPlayerGroup(source) if group then outputChatBox(group) setElementData(source, "Gang", group) end end addCommandHandler ( "getgroup", getgang ) You can't call an exported function without including it, I assume that the first exported function returns the name of a group as a string and adds it to the local variable "group", secondly you must add a command handler or similar, otherwise your function will never be triggered. During the test phase it's also good to verify that the exported function actually returns something, if it does you will see that as a chat output. Good luck.
-
You need to specify the parameters in your function: element hitElement, bool matchingDimension Change line 9 to this: function(thePed) and the hitElement will be passed to the event.
-
Check "Servers to play on" which has a lot of topics related to different servers. https://forum.multitheftauto.com/viewforum.php?f=115 Look for RPG or RP servers in general if you want to join the army. https://forum.multitheftauto.com/viewtopic.php?f=115&t=75302
-
I don't have that resource, talk to the person who sold it to you. All I can do is to recommend this: RPG Police system resource which I made from scratch and released as open source, still in BETA thought, but I guess it's easier to deal with then a broken resource with missing parts.
-
[REQ] Paying for a stable non-buggy rpg gamemode.
Mr_Moose replied to [SG]Santeri's topic in Resources
It's a work of art to buy scripts, especially full game modes that actually works as you want and not just attempts to scam you. There are many good open source resources which works together and creates a full RPG game mode just as you want it. All these are free and based on open source for instance: Fastfood, Job system, Law system BETA, Trains on the railroads And many more. -
If you like compiled resources full of bugs that literally ruins your hard drives yeah. I rather recommend this: https://community.multitheftauto.com/index.php?p=resources&s=details&id=9056, not just because I'm the author, I just thought this community needed a real turfs system published as open source. See what the others says.
-
Check your resource folder if you received something like "ORCcommands", that recourse has a lot of export calls, if not then you may have been scammed. After looking into it that script looks familiar to me, like if it where leaked from somewhere.
-
Any errors in /debugscript? At least try to locate the error, it's hard to say just by looking through all these files.
-
I suppose that only triggers on client sided vehicles, try cancel that event server side instead. addEventHandler("onVehicleStartEnter",root, function(player,seat,door) cancelEvent() end)
-
Perhaps this can be helpful. Good luck.
-
If there was a way don't you think everyone would use it then? Anyway I may regret this but there is one way. And that way is to fake physical players by using multiple computers, virtual or physical. It's an expensive solution too unless you have a lot of old windows computers standing in a corner gathering dust or a really powerful windows server in which you can run multiple virtual machines, that would also require a whole bunch of windows licenses and so on. Anyway I agree with MIKI785 and all other server owners, find some real players that want to play on your server instead, how hard could it be?
-
Maybe this can help you: https://community.multitheftauto.com/index.php?p=resources&s=details&id=8338. A full vehicle spawn system in open source, if you don't want to use it you might just copy some parts of the code to solve any problem you find in your script.
-
That's also a way to do it, the most simple solutions are always easy to forget about Look at my earlier example and replace the object with a pickup, there is a colshape and an event handler in that one already.
-
Try the included sample on the wiki page which takes two numbers from a lua resource, pass it to the php page and then send the result back. The sdk is placed on your webserver together with your php script file and can be called from anywhere.
-
I guess the PHP SDK is what you're looking for: https://wiki.multitheftauto.com/wiki/PHP_SDK, my experience in that isn't that good currently but it's pretty simple to use as long you have some php and lua experience.
-
Maybe, were currently moving all AC servers to new hardware but I might be able to test it in a few hours. Still don't think it's possible for pick ups to trigger when they getting hit by a vehicle. It doesn't work in single players and will probably not work in MTA either.