Garry's Mod

Garry's Mod

5,443 ratings
[simfphys] LUA Vehicles - Base
Type: Vehicle, Addon
Tags: Fun, Build
File Size
48.477 MB
Sep 28, 2016 @ 12:10pm
May 21 @ 8:26am
74 Change Notes ( view )

Subscribe to download
[simfphys] LUA Vehicles - Base

simfphys is a vehicle entity script that is primarily aimed for four-wheeled-ground-vehicles. These vehicles can be edited ingame, thats cool i guess, but don't put all sliders on max and expect good handling lmao.

stupid kids these days cant do anything without fat red arrows and pictures

some of the features:
  • engine powerband
  • automatic or manual transmission with realistic gearing
  • traction settings that reach from sliding like on ice to driving like its on rails
  • simple inbuilt lighting and emergency light system
  • mouse steering
  • remote controlling
  • joystick support REQUIRES THIS ADDON[]
    (server needs the addon, client the "gmcl_joystick_win32.dll" module. Read the if you are confused.)
  • simple vehicle damage system (can be disabled in the server settings menu)

console commands
  • sv_simfphys_devmode
    - enable/disable Edit Properties menu. 0 = disabled, 1 = enabled,requires a map reload

  • sv_simfphys_enabledamage
    - enable/disable vehicle damage. 0 = disabled, 1 = enabled

  • sv_simfphys_gib_lifetime
    - gib lifetime, value is in seconds. 0 = Never despawn

  • sv_simfphys_forceworkshop
    - enable/disable forced workshop. 0 = disabled, 1 = enabled,requires a map reload

  • sv_simfphys_playerdamage
    - enable/disable players collision damage (in vehicle). 0 = disabled, 1 = enabled

  • sv_simfphys_damagemultiplicator
    - increase/decrease vehicle collision damage. default = 0

  • sv_simfphys_fuel
    - enable/disable fuel system. 0 = disabled, 1 = enabled

  • sv_simfphys_fuelscale
    - scales the fuel tank size for all vehicles. default = 0.1, 1 = realistic fueltank size (up to 3 hours of fullthrottle driving)

  • lua_run local tbl = physenv.GetPerformanceSettings() tbl.MaxVelocity = 200000000 physenv.SetPerformanceSettings(tbl)
    - increase max velocity (topspeed) (doesnt work in darkrp. you have to edit the gamemode for that)

  • sv_simfphys_teampassenger
    - only allow players of the same team to enter the same vehicle? 1 = team only, 0 = everyone can enter

included/supported vehicles (I do not take credit for any of these)

Thanks to
  • SligWolf for scripting help and teaching me how to rig/animate in XSI.
  • Spacecode for scripting help.
  • Salza for playtesting, some model editing and mental support

My GitHub[]
additional wheels for the wheel tool
simfphys wiki[]
Popular Discussions View All (87)
Oct 12 @ 5:19pm
PINNED: BUGS / ISSUES - report them here.
Oct 16 @ 8:08am
car is max speed at 270
Oct 17 @ 4:16pm
Not spawning car
< >
Luna  [author] 8 hours ago 
so unless you tell me how to alter the source-collision-behavior without making an unreliable ranger-applyforce-based-system to replace the current spherical wheels there is nothing i can do for you
Luna  [author] 8 hours ago 
gta v vehicle physics are in no way comparable with what we are doing in gmod. The wheel-collision behavior is all done by the source engine
CturiX 9 hours ago 
It isnt exactly something related to suspension values as whatever they may be, wheels can still get caught on inclines such as footpaths; it compresses the suspension on an angle and pushes the car upwards.
What im talking about is a string where, if a wheel drives over one of those inclines, it just pops itself at the top to avoid sending the vehicle. GTAV's driving makes a good example of it if you want to see what im talking about.
Luna  [author] 11 hours ago 
?everything you need is already there? hint: constant, damping, wheel mass, vehicle mass, inertia
CturiX Oct 17 @ 10:38pm 
If there's one suggestion to make, it would be a wheel-bump supression of some sort. I.e. if the a wheel is driven into a gutter or something thats just as high, it just pops up with little affect to the suspension and doesnt drive the car into the air.
Arthur =) Oct 17 @ 12:11pm 
This is the best Car base i love it... i want love it more if Users add more Tanks and another Military vehicles <3
Chief Lemon Oct 13 @ 5:52pm 
I have downloaded the addon, yet it won't work.
DragonZX Oct 13 @ 3:20pm 
@TrainerTaleAsriel There are mods for that though.
[SUP] inflictedgolf38 Oct 12 @ 11:17pm 
is there a way to turn off auto handbrake in automatic mode?
TrainerTaleAsriel Oct 10 @ 11:49am 
can you make inital d cars compatible? roys cars have a few like the fd3s ( spirit r ) and of course the ae86 toyota trueno