Garry's Mod

Garry's Mod

Tidak cukup rating
Aura's Vehicle Management System
   
Penghargaan
Favorit
Difavoritkan
Batalkan favorit
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Roleplay, Realism
Ukuran File
Diposting
Diperbarui
109.636 KB
2 Jun 2020 @ 12:17am
22 Jun 2020 @ 8:44pm
7 Catatan Perubahan ( lihat )

Berlangganan untuk mengunduh
Aura's Vehicle Management System

Deskripsi
Vehicle Management / Hangar System

This addon is meant to add organization and ease of access to vehicle systems in garrys mod, specifically LFS, although the system CAN be used with other vehicle systems, the base prop model, and layout is designed to be used in a SWRP LFS environment

The base features are as follows:

  • Create ordered hangar systems with different spaces
  • Allow specific jobs to spawn specific vehicles (can be any entity but LFS vehicles are the main purpose)
  • See who is parked in what area, and what vehicle they are in (This only works for LFS vehicles)

These things are the main idea of what you should do with this, you can use debug mode to position and scale each hangar, in using this, you can allow pilots to spawn ships, or ground teams to get vehicles, each regular player can have one vehicle in a hangar at a time, when it leaves they can spawn another.

Admin and superadmin permissions can be set by superadmin ranked people, if you use a CAMI compatible administration system then you can easily choose from a list of usergroups to add to superadmin / admin permissions, the usergroup of the person who spawned the terminal will be added to the admin groups.

Admins+ can use all the admin tools, including

  • Adding and removing hangars
  • Changing radius of hangars
  • Adding and removing ships from the config
  • Adding and removing jobs to the config
  • HIding / showing the hangar "nodes"
  • Adding ships to each job, this means that each job has to have ships assigned that they can spawn

  • Superadmins can do all of this, as well as set usergroups

------------------- How to use---------------------
First of all, find the entity under the Aura's Hangars tab in the entities tab and spawn it, obviously.
Upon spawning it, you will see that the terminal has a display, and one hangar.
By pressing E on the table, you can open up the hangar manager.
In this menu, you can add hangars and remove them with the buttons, removing will remove the last hangar.
You can see the number and radius of each hangar by enabling debug mode.
Next, you will want to add ships, this can be done by copying the class of the vehicle from the spawn menu and right clicking it and hitting copy to clickboard. Paste that into the class box, and give it a name, the name is what will be shown in the menu.
Once you add the ships you want to work with, you can add jobs, if you are in DarkRP or a DarkRP based gamemode, jobs will automatically show up in a table for you to choose from, adding a job means it can spawn vehicles from the terminal. Jobs can also be removed if you add one accidentally, same for ships.
Once you add the jobs you want to configure, you can hit edit jobs, this will bring up a dropdown to select a job, by selecting a job, you can hit "Add ship" to choose from the ship list to add. You can remove them from a job by clicking them in the ordered list below the button. Once you add the ships to a job, you can now exit the menu and perma prop the terminal. This will ensure that next time you reload the server or map, it will save all the details you defined! This takes a second to get used to, but once you do, you can easily set it up in just a couple minutes.
Servers not using a DarkRP base will have to type the job name directly, however, note that currently, it does not work with any other mode to "whitelist" jobs, it simply lets any "job" use any ship in the list, consult me if you need help setting up your gamemode to work with it, the code is a tad bit messy, I know.
Players can walk up to the terminal, and if they are not in the admin+ usergroups, they will see an option to select a hangar and to spawn a ship, if their job is in the list, they will see a list of ships to spawn, clicking one will make a ship spawn at that terminal, careful when spawning! You don't want to spawn too big a ship or crush someone in the hangar. You can see at the terminal who spawned what ship, and where, once they leave the radius in their ship, it will go back to being empty.
----------------------------------------------------------


This is very important when you make a change: After any change, press R with the perma prop tool on the terminal to save all data

Watch the above video in the media area to see the system in use, if you experience any bugs or glitches, make sure to put them in the comments

Thank you for taking the time to read this, people tend to ask questions that are answered in the description, so if you read it all, you should know all you need to know.
31 Komentar
The Đoctor 28 Des 2023 @ 5:03pm 
Loved this script for a long time. Sadly as others have pointed out when you permaprop the console, the hangar block resets to it's default direction. Hope to see a fix soon! Thanks.
Nickers 10 Sep 2023 @ 4:18am 
How do you save hangars? When I use perma props on them, it causes errors.
⚕ Neron ⚕ 27 Apr 2023 @ 3:51pm 
Suggestion:
A way to change bodygroups as well as skins of the desired vehicle in the menu.
Maybe like a tab with the bodygroups and skins where you can mark which ones you want the vehicle to spawn with.
It would be a nice for non admin players, they would have a way to customize their vehicle without the need the call an admin, because only them can use the C menu.
Requiem 4 Apr 2023 @ 1:01pm 
Does it copy LFS bodygroups and AI groups?
Example: I want it to spawn a pelican with the ai group of 3
Aura  [pembuat] 22 Agu 2022 @ 3:34pm 
@ArticWolfLMAO, the way I implemented to avoid this was to limit one ship to each hangar, so theoretically, you would have players able to spawn multiple ships if another player moved said ship away from the hangar/spawnpoint each time one was spawned, say a commander or admin, etc.That way, players can spawn infinite *technically* but only one at a time per location, which effectively limits the number they can spawn to the number of hangers that exist.
Articwolflmao 22 Agu 2022 @ 12:57pm 
Hey excuse me, I plan on adding this to my server is there a way of limiting it so one player cant spawn an infinite amount of ships
polecarbonat 3 Agu 2022 @ 8:38am 
Please do it for simfphys!
Past 21 Feb 2022 @ 3:19am 
Hello. There is a bug in your addon. When on the server I use PermaProp on the console, the spawn direction of vehicles changes to standard. Another addon of yours that should fix this does not work. What are the solutions to this problem?
NeonTaco619 | Sixxer 18 Okt 2021 @ 9:39am 
Much like what the guy said below, Does it not work with Simfphys? If it does, how do we get it to work? It keeps saying we are missing content or something.
Alkyiel 18 Okt 2021 @ 5:34am 
shame this doesnt work with Simfphys vehicles.