Garry's Mod Leaks

[LEAK] 3D Car Display

Submitted by rafaelcomepastel, , Thread ID: 73756

Thread Closed
06-02-2018, 03:51 AM
#1
[Image: 68dd426c2fa8e6ca86b689c1f934b35b.png]
[Image: ae8ac1ac9cd96f3a3ff41f78412ebe33.png&w=1...output=jpg]
[Image: 1230d19b7999beb4c90724f9417ba69e.png&w=1...output=jpg]
[Image: 44b98a2c6e8f4d454cca61e7970906e8.png&w=1...output=jpg]


2.0 Changes / Improvements
Major update, featuring fixes, long awaited features and changes.
Changes:
  • Added Admin Menu, with the ability to Remove / Modify Players Cars.
  • Added Tag Filtering, CarPads can now be filtered based on config defined tags, allowing you to create CarPads dedicated to certain types of vehicles such as Government or Donator Only vehicles.
  • Added more Config Options: Colour Restriction (Cars can only be changed to certain colours), Bodygroup Restriction (Cars can only have certain bodygroups changed)
  • Added Colour Config, so global colours can easily be altered across all CarPads
  • Added more detailed config errors showing statistics, a whole new screen will pop up and a status report can be generated showing what cars failed to be registered and what line they were on.
  • Increased Error Catching, hopefully less errors will be visible when the config is failing to register vehicles

Fixes
  • Fixed minor console spam
  • Removed print statements
  • Fixed a few null entity / index errors

Hopefully this should solve all the issues people have been having and get the addon back to good condition.
Once again thanks for the support, if you need any assistance feel free to contact me on here or Steam. Thanks, Spai
Description



3D Car Display is unique way of giving your players access to vehicles within DarkRP. They are able to freely customise and view the changes live in a 3D environment as the car changes, no need for preview panels and custom menus. The car is created and projected to the client independently allowing multiple users on one display, also reducing lag on the server with unneeded entities being created. With a smooth and simple UI it is designed to be easy to use and understand, with no extra textures or materials required across the entire addon.
Preview Video
Features


  • 3D Display for viewing and modifying cars
    • Including Colour and Bodygroups
  • 4 Entities:
    • Carpad (Small)
      • Allows users to customise and purchase new cars with a range of different options and colours.
    • Carpad (Large)
      • Larger version of the small carpad with all the same functionality but BIGGER!
    • Car Display Board
      • Displays all of the users cars allowing them to spawn in their current cars as well as sell them.
    • Parking Pad
      • Your users cars spawn on these pads and are also returned.
  • Easy to use Configuration:
    • Every aspect of the Car Configuration can be controlled.
    • Add your own custom vehicles with custom basetypes (e.g. not "prop_vehicle_jeep"), with custom group checks only allowing certain groups to purchase and spawn certain cars
    • Change the max amount of vehicles a player can spawn in, and the price they are sold back out.
    • Language options included currently we include English, French and Russian (looking for more translators, if your language isn't there give me a shout we can sort it out Smile )
    • Default examples for all config options
  • Entities are created and spawned easily by using the servers own persistence module.
    • Simply spawn the entity in, move it to where you want it, Hold C, Right Click on Entity, Click "Make Persistent" on next server reboot the entity will respawn.
  • Tag System can be used to filter through cars and create unique Car Pads showing only certain types of cars. For example Donator Only or Government
  • Admin Menu, allowing you to see other players cars and make changes to their garage.
  • No Texture or Models needed, all assets used come with the cars already on your server, meaning smaller download times.
  • Minimal FPS Impact
    • Draw distances have limited and are cut by LOS/PVS (Line of Sight / Potential Visibility Set)
  • Minimal Server Impact
    • All models are created on the client and not on the server, meaning the client is doing the heavy lifting.
  • Installation is Drag and Drop, with a heavily documented config.

Think that's everything, if you've got any questions let me know in the discussion.
Support / Info



I of course will be providing support to this addon, and will do my best to keep this as bug free as possible. If you've got any questions feel free to drop a support ticket or talk to me on Steam. I want to ensure this addon can do its best and the people involved enjoy using it. That being said support tickets will answered as fast I can, Ill be on holiday and away for periods of time in the up and coming months.
That being said if you have any suggestions / improvement / changes you think could be made to improve or add to the experience I'd love to hear them.
Anything you think is missing? again let me know would love to hear.
FAQ / ReadME
How to install:
  • Simply Drag and Drop root folder into your addons. (RootFolder = Car-Display)
  • Make sure to check your config to add your vehicles before running the server, this can cause crashes to your server.
  • The config is found in Car-Display/lua/sh_config.lua
    • This includes details on how to add your new vehicles and change the addons language

FAQ:
How do I add vehicles?
  • Check sh_config.lua in the addons lua folder, the function needed to add more vehicles is heavily documented in there. If you are still having problems, throw me a support ticket and Ill help you out

How do I make the entities stay on server restart?
  • My addon does not feature its own save feature, instead we use this feature which is prebuilt into Sandbox which DarkRP uses as a base, or alternativly you can user PermaProps on all the entities.

sbox_perisit Explanation (PermaProps Alternative)
  • You position all of your entities in game and once positioned correctly. Open the context menu (Hold C), right click on the entity you want to keep and click "Make Persistent". This will make the "world" he owner of the entity now and will respawn next server restart.

Warning: Requires sbox_persist to be set to 1 (This is default in DarkRP)
How do I return vehicles once Ive spawned them?
  • You park them back where they were spawned or on any parking pad entity, if you are above the parking pad when they exit the vehicle it will be returned to the player who owns the vehicles garage.

I cant see the parking pads when I spawn them?
  • You can view this entity by typing in the convar "cardisplay_showparkingpads 1", this is available to all users not just admins.

People are blocking parking pads?
  • By defualt players have 40 seconds to get their car once it spawns, if they dont it will be returned back to their garage. Props and such can still block parking pads, not sure what I can do to solve that.

MDL Cache: model needs to be recompiled?
  • Im not 100% sure what causes that, but it didnt cause me any problems during development. So continue to ignore as long as the vehicle still works properly.

How do I look at players vehicles as an admin?
  • Use the Console Command
    cardisplay_openadmin
  • and a list of players should show up. From here as an admin you can modify and remove online players cars.

How do I filter CarPads by Tag
  • Hold C (Default Bind) to Open the Context Menu, Right Click on the Entity and then Edit Properties. From here you type in all your tags and the CarPad will update in real time. More than one tag can be added by seperating with a
    ,
  • .

My Cars arent loading?? / Where are my configured cars!?! / Why are you giving me a broken addon? / Why are there so many errors!!
  • Alright, Ive added some extra debug features hopefully this helps you guys work out why its broken. But 99% chance its somewhere in your config.

How can I access these 'extra debug features'
  • The easiest way to get to them is in the CarPads, If it cant find any cars it will show you the current stats on your config. Including how many cars are loaded / how many failed to load. From there it will print a status report showing you which vehicles failed and what lines they are located on.
  • To force show change the tags to a non-existent one (e.g.
    testing
  • ) and they will show up. Alternatively if you're an admin on the large car pad, a small debug button will be shown printing a status report.

Contact / Support
If you at any point are struggling to use this script, something is not working as intended. Feel free to give me a shout on Scriptfodder support or Steam
(steamcommunity.com/id/Snappey)
Thanks for purchasing this addon, Snappey / Spai .
Shoutouts
MikAy Howell - helped me polish the UI, has an obsession with watermelon. Check his script (here)[https://scriptfodder.com/scripts/view/2199/mhessentials]








Content locked
This content has been locked. Please login or register in order to unlock it.

RE: [LEAK] 3D Car Display

#2
thanks you for this amazing script, i hope it works on my server

RE: [LEAK] 3D Car Display

#3
Looks good, but I'd still stay with my script, but it is amazing

Users browsing this thread: 3 Guest(s)