Jump to content

Mr_Moose

Members
  • Posts

    866
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Mr_Moose

  1. Yes it is possible, but it's also a really bad idea as the first server will lock some of the files for other applications to read or modify them, including the second server. Resources generally doesn't use much hard drive space so having two identical maps folders (one for each servers) won't be an issue. If your intention was to simplify development I suggest you use a third development directory from where the files can be cloned to both the servers using a simple bash script. cp -r -v -u /servers/dev/* /servers/s1 cp -r -v -u /servers/dev/* /servers/s2
  2. May happen if a folder is renamed or something, try from the root or use this. Topic updated.
  3. The active element must be brought to the front, that's what causing the focus in the first place. Try this: guiBringToFront(editBox) guiEditSetCaretIndex(editBox, 0)
  4. It's easier to maintain the code and cooperate with other developers on Github.
  5. Sold and outdated, New versions is available on Github. I would like to have them all removed. Description is changed to "DELETE" + reason. https://community.multitheftauto.com/index.php?p=resources&s=details&id=8038 https://community.multitheftauto.com/index.php?p=resources&s=details&id=8041 https://community.multitheftauto.com/index.php?p=resources&s=details&id=8060 https://community.multitheftauto.com/index.php?p=resources&s=details&id=8230 https://community.multitheftauto.com/index.php?p=resources&s=details&id=8231 https://community.multitheftauto.com/index.php?p=resources&s=details&id=8305 https://community.multitheftauto.com/index.php?p=resources&s=details&id=8338 https://community.multitheftauto.com/index.php?p=resources&s=details&id=8555 https://community.multitheftauto.com/index.php?p=resources&s=details&id=8620 https://community.multitheftauto.com/index.php?p=resources&s=details&id=8783 https://community.multitheftauto.com/index.php?p=resources&s=details&id=9056 https://community.multitheftauto.com/index.php?p=resources&s=details&id=10155 DONE
  6. I downloaded a clothes shop resource from the community long ago which should be there still, if not there are two backup values which can be found after the "or" statements. The law system wants to know the players casual clothes/skin before jailing him or turning him into a criminal. It's a server side function called from GTWwanted only which can be safely removed and replaced with any integer representing a skin ID.
  7. Of course, but do it here, so all developers can see it
  8. Alright, glad that you like it, don't forget to report any issues you may find so we can solve it. @Olle a sitemap is under construction, there might be more things to change in the organization however, so it might take a while. Next up is an implementation of police bots using slothbot that will work together with these resources.
  9. The getRealTime function has the current time in seconds as default argument, so you could add or subtract the amount of seconds needed to convert into your own time zone by some basic math: local offset = 3600 * <amount_of_hours> local realTime = getRealTime() local current = realTime.timestamp local localTime = getRealTime(current + offset)
  10. Default swap size is 2x of the installed RAM depending on the hard disk size. You shouldn't use the swap as a permanent replacement for RAM unless it's needed but a few hundreds of MB could be stored on the swap without bigger issues for sure.
  11. Recommended download: GTWjail For the actual jail functionality. Rockets might be added to this resource as well, making it a fully working jail system.
  12. For a year I've been hosting on a modified old laptop rebuilt to server with the following specifications: CPU: 1 core @ 1.4GHz | RAM: 1.25GB (2GB swap) | HDD: 60GB + backup | Bandwidth: 1Gbt/s The operating system is a downscaled Linux Debian using minimal amount of system resources for maximal performance and beside the standard applications like web, ftp, smb, email etc the following MTA servers is running on this machine: Freeroam + GTW-RPG (minimal) Race + GTW-RPG (minimal) GTW-RPG (full) Development (various resources) Map editor Some kind of third party role play server, vG maybe. With around ~10 players on each public server the system resources where used to ~50-60%, idle: ~20%. Now these are all optimized resources and just one little mistake can waste all CPU performance or eat all RAM for you, but if you know enough development to optimize your resources, you can easily host a large amount of servers on that configuration without any lag. And with a fair player amount as well. Use performance browser and the servers own performance monitor like "top" or "htop" to find out which resource is responsible for wasting your performance. If there is any of course, otherwise you're free to go and start how many servers you want.
  13. It's time to release this long awaited pack of resources that represents GTWalrus police job, wanted level system, jail and the jail map. The history behind this is long, it starts with a complex resource named "ac_police" that quickly reached the community top lists, despite it was leaked and therefore didn't worked on other servers than our own, mainly due to it's complexity. That proved to us that this is something the community wants, so why not just write it and release it as open source, we asked ourselves. And here's the result: Resources included: GTWpolice: The core system, manage the police job, arrests, jail cells to deliver suspects, kill arrests etc. GTWwanted: Manage the wanted level, violent time, tracking and crime detection. GTWjailmap: A complete jail island outside Bayside Marina, inspired by Alcatraz GTWjail: Manage jailing functionality both for law units and staff Installation: All these above listed resources are needed as they are closely integreated with eachothers, to become a law enforcer you also need the GTWcivilians resource. Export calls are also made to GTWtopbar, all these resources can be found in the GTW-RPG project on github. Documentation is found on Github as well as individual requirements and other important information. Clone the git project files and copy the resources into your resource folder, then start and enjoy. Note that this is the first official open source release of all these files, if there's any issues or questions, feel free to report it on Github, on our forum or as a reply here. Features: Arrest wanted players by hitting them with your nightstick, (Team has to be "Government", "GTWcivilians" takes care of this). Realistic tazer with fall down animation Deliver arrested players all the way to the cell blocks inside the police departments Kill arrest on violent players Crime detection for almost anything you would have been wanted for in real life, from hitting a mailbox or crashing your car into a lamp post, to murder or threating by target a weapon at someone. (both players and peds). Reducing wanted level depending on distance to nearest law enforcer Dx tracking system of suspects at bottom right. /fine to pay a fine with many regulations /wanted to list wanted players and see if they are violent, arrested or jailed by color on the text. A complete jail map where law enforcers can work as prison guards and escape is possible by getting away from the area. (Use GTWgates for gates restricted to law enforcers and GTWsafeareas for rocket launchers on the guard towers (may be changed in the future)). Admin jail and unjail with commands and reasons (using ACL) Stealth based, you can choose if you want to track with our without blips (GTWplayerblips), without the ability for law units and criminals to see each others blips it's possible to hide and perform more strategically attacks or just sneak away, cooperation is required. Enjoy!
  14. Updated: Moved teams into GTWcivilians This should make this resource much easier to use and prevent issues related to lack of knowledge or interest of learning how it works. Installation instructions has been added as well and technical details can be found here. Enjoy.
  15. 64-bit is for 64-bit operating systems running on 64-bit CPU's, (pretty much any new machine available on the market today). And the main advantage is the ability to address more RAM. Let's say you have a server with more then 4GB ram, then choose the 64-bit version, the 32-bit version can't use more then 4GB RAM. Except for that there aren't much advantages or differences.
  16. The only think I could think of is this this, setElementPosition: Now, I know it sounds farfetched but it actually makes sense, you said it worked again after killing the player. (Something that probably will spawn the player the correct way). You may have a look at the function setElementPosition and ho that one is used in your resources.
  17. The idea is relatively simple and has been the same ever since the beginning, look into the file "veh-data.lua". In there you'll find a table at the bottom with a layout like this: vehRights1 = { -- occupation, team, wanted-level [1]={ "", "", 50 }, ... } Where the first value is "occupation", assigned by element data like this: setElementData(thePlayer, "Occupation", "value") Team is a standard team object which has to be defined and setup properly as well. The current version is 2.2-beta but on the community it's 1.4, I haven't looked deeper into that version in many months but I do know the later versions will use the built in wanted level to check for that value, otherwise the value named wanted level in the table must be set as element data as well. The key for that is "Wanted". All I can suggest is to edit the part where all the checks are performed, or wait for the 2.2 release of GTW-RPG as the upgraded version of this resource will be included there. Same with the police and wanted level system as none of them communicate properly with each others in versions below 2.0.
  18. I already explained the basics for you here in short. Try that, and when you have your first resource up and running, check the wiki and try the examples there. That's a good start.
  19. A basic version, add this into a text file and name it "meta.xml". <meta> <script src="s_dashboard.lua" type="server" /> <script src="c_dashboard.lua" type="client" protected="true" /> </meta> Then create the two files "s_dashboard.lua" and "c_dashboard.lua" and put all three files into a new directory and give it a useful name like "dashboard", type "/refresh" in the server console then "/start dashboard" and you'll have your resource up and running. Good luck
  20. Well the community version is almost a year old by now while the current version is 10 days old. If you want to use teams instead of groups it's relatively easy to change, as it uses element data. You just have to replace all entries holding: getElementData(..., "Group") with: getTeamName(getPlayerTeam(...)) A working group system for this would be this one: https://community.multitheftauto.com/index.php?p=resources&s=details&id=8291 by sebbe. Note that the turf system is made for the group system and not the opposite, so don't expect any support from sebbe if you get any issues with the integration between the systems, as it's not his responsibility. There are two modified versions of that group system however made to work with the turf system out of the box. One by The Walrus (released 2014), and the other by Chronos (released 2015), you'll find them both here: http://code.albonius.com/?q=group
  21. If this: getElementData(veh, "needparts") is not set it will return false when you try to get it's value, that means "needparts" will be false as well, and false cannot be included into a string. Try this on line 1: local needparts = getElementData(veh, "needparts") or 0 , that will assign the default value to 0 just like you did on line 2.
  22. Mr_Moose

    Telewire

    Well that makes sense then, always the details I forget to check. I'm not sure if it's streaming related either but it's worth a try. Check if it's any difference between running on server vs client side, and finally, are you sure you have the correct object ID's.
  23. Mr_Moose

    Telewire

    Haven't seen many telephone wires at the coordinate: 0,0,0. That could be the problem.
  24. I don't know any Danish servers but I know my own, "Grand Theft Walrus" (Freeroam, RPG, Race) and some other games, we're located in Sweden, and even if English is the servers main language, we certainly also allow Scandinavian languages such as Danish, Swedish and Norwegian. So if you're looking for Scandinavian servers this is what I can recommend, although I know it's a little ugly to advertise my own work
×
×
  • Create New...