Garry's Mod

Garry's Mod

441 ratings
Jax's Car Mod [Speedometer and Fuel]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
5.786 KB
18 Jul, 2014 @ 9:20pm
24 Feb, 2016 @ 3:20pm
6 Change Notes ( view )

Subscribe to download
Jax's Car Mod [Speedometer and Fuel]

Description
Thread - http://facepunch.com/showthread.php?t=1410602&p=45434265#post45434265

*Features*
-Speedometer
-Fuel Gauge
-Gas Can Entity
-Radar Gun
-Admin Gun

*How to add vehicles*
-while in-game, open the spawn/tool menu and go to options>Jax's Car Mod>Admin and select "Manage Vehicles"
-click on the button labeled "Add Vehicle" and input the model and Fuel where indicated
-you can edit vehicles using the "Manage Vehicle" button
*OR*
-navigate to addons/Jax's Car Mod/lua/CarMod-Jax/shared.lua
-use the format AddCar( "model", Max/Starting Fuel ) (this is included in the file with an example) (this method is deprecated, but still available)
*Tip* - while using the admin gun, right click while looking at a vehicle to copy the model

*Admin Gun*
-left click to refill fuel of car you are looking at
-right click to put the model of a vehicle you are looking at onto your clipboard

*Radar Gun*
-left click to retrieve speed and driver of vehicle (placed in user's chat)

*Gas Can Entity*
-On contact with vehicle, adds fuel and dissappears
-doesn't do anything if fuel gauge is full
-amount of fuel it adds can be edited in the admin options

*Added Functions*
Vehicle:CheckGasSet() - returns bool, Checks to see if the vehicle in question is added/set up with mod
Vehicle:GetMaxGas() - returns the Max/Starting Fuel of a vehicle
Vehicle:GiveFuel( amount ) - *server-side only* adds specified amount to a vehicle's fuel (will not exceed Max/Starting Fuel or fall below 0)
Vehicle:SetFuel( amount ) - *server-side only* sets the fuel on a vehicle to a specified amount (will not exceed Max/Starting Fuel or fall below 0)
Vehicle:GetFuel() - returns amount of fuel left in vehicle
Vehicle:GetSpeed() - returns vehicle's current speed
GetMaxGas( mdl ) - returns same as vehicle:GetMaxGas() (Max/starting fuel of a model)
CheckGasSet( mdl ) - returns same as vehicle:CheckGasSet() (checks whether or not the vehicle is added/set up with mod)

*Changelog*
v1.5
+added radar gun hook (for other mod integration)
*various minor bug fixes
v1.4
*fixed bugs with radar gun
v1.3
*Fixed a few bugs that occurred when running DarkRP
v1.2
*fixed vehicle not turning on and saying out of gas when gas is set via Car Manager
*adjusted speed values to be more realistic
*fixed gas can entity from treating all cars as having max 1000 fuel
+added ability to change gas amount administered by gas can entity in admin options
+added help menu

v1.1
+Added Vehicle Manager GUI
*Lowered and shortened 2D HUD
*adding cars by shared.lua deprecated
+added 2 more functions

v1.0
Release :D

please leave bugs/questions/suggestions below

Consider donating? https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9PETW7DHAH9UY
Popular Discussions View All (2)
1
16 Jun, 2021 @ 8:50am
Simphys broken?
Wealy
0
1 Mar, 2018 @ 2:30am
Lua problems
_Doctor_Gunner_
117 Comments
LλMBDA Huge SCP / Gmod Fan 29 Dec, 2023 @ 1:27pm 
fuel:missing::physgun::melon::gmod::steambored::steamfacepalm::steamhappy::steammocking::steamsad::steamsalty::steamthis::steamthumbsdown::steamthumbsup:
Slaughtered  [author] 15 Feb, 2021 @ 2:24pm 
@idioticEd told the other guy to kill himself, talking a lot of shit, probably made a threat or 2
idioticEd 14 Feb, 2021 @ 4:48pm 
what was the deleted guy talking about?
Slaughtered  [author] 24 Jun, 2020 @ 8:40pm 
@carsontheMaster equip the admin gun, aim at vehicle, right click, this will put the model onto your clipboard, paste that into textbox where it asks you to put the model
H311F1RE 12 Jun, 2020 @ 6:26pm 
uh how do i add a model to when making a new car? do i have to download something or whatever?
Nip 24 Nov, 2018 @ 8:24am 
rodger that
Elvisnator 3 Nov, 2018 @ 7:12pm 
To anyone who uses simfphys: That mod conflicts with it.
Slaughtered  [author] 15 Sep, 2018 @ 9:28am 
I'm just gonna delete his comments
nova. 15 Sep, 2018 @ 7:34am 
You're the one kid who tells me to kill myself. How am i the idiot here? You're the one trying to make your opinion a fact but yet you keep failing hilariously.
Slaughtered  [author] 12 Sep, 2018 @ 11:53am 
his debate and critical thinking abilities tell me that he's 12, or indeed an idiot