Garry's Mod

Garry's Mod

442 个评价
Jax's Car Mod [Speedometer and Fuel]
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 快乐, 角色扮演
文件大小
发表于
更新日期
5.786 KB
2014 年 7 月 18 日 下午 9:20
2016 年 2 月 24 日 下午 3:20
6 项改动说明 ( 查看 )

订阅以下载
Jax's Car Mod [Speedometer and Fuel]

描述
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
热门讨论 查看全部(2)
1
2021 年 6 月 16 日 上午 8:50
Simphys broken?
Wealy
0
2018 年 3 月 1 日 上午 2:30
Lua problems
_Doctor_Gunner_
117 条留言
LλMBDA Huge SCP / Gmod Fan 2023 年 12 月 29 日 下午 1:27 
fuel:missing::physgun::melon::gmod::steambored::steamfacepalm::steamhappy::steammocking::steamsad::steamsalty::steamthis::steamthumbsdown::steamthumbsup:
Slaughtered  [作者] 2021 年 2 月 15 日 下午 2:24 
@idioticEd told the other guy to kill himself, talking a lot of ♥♥♥♥, probably made a threat or 2
idioticEd 2021 年 2 月 14 日 下午 4:48 
what was the deleted guy talking about?
Slaughtered  [作者] 2020 年 6 月 24 日 下午 8:40 
@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 2020 年 6 月 12 日 下午 6:26 
uh how do i add a model to when making a new car? do i have to download something or whatever?
Nip 2018 年 11 月 24 日 上午 8:24 
rodger that
Elvisnator 2018 年 11 月 3 日 下午 7:12 
To anyone who uses simfphys: That mod conflicts with it.
Slaughtered  [作者] 2018 年 9 月 15 日 上午 9:28 
I'm just gonna delete his comments
nova. 2018 年 9 月 15 日 上午 7:34 
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  [作者] 2018 年 9 月 12 日 上午 11:53 
his debate and critical thinking abilities tell me that he's 12, or indeed an idiot