Garry's Mod

Garry's Mod

Tuning in simfphys (Unsupported)
 This topic has been pinned, so it's probably important
DangerKiddy  [developer] 28 Jun, 2018 @ 2:25am
For developers:
To add support for your cars you need to add this in your car code(under "Mass = ,")

OnSpawn = function(ent) ent:SetFrontBumperValues(true, 1, 1) ent:SetRearBumperValues(false, 0, 0) ent:SetSkirtValues(true, 3, 1) ent:SetExhaustValues(true, 5, 2) ent:SetSpoilerValues(true, 4, 1) ent:SetSkinValues(true, 9) end,

now, what everything means:

ent:SetFrontBumperValues(bool, group, maxvalue)

bool - have front bumper? true - have ; false - haven't
group - group of bodygroup.I mean, group of bumper, for example.

Easier will show you:

Rear Bumper -> stock.smd(0) -> street.smd(1) -> sport.smd(2)
Front Bumper -> stock.smd(0) -> street.smd(1) -> sport.smd(2)

Max value will 2, group if front bumper will 2

the same with another functions
< >
Showing 1-2 of 2 comments
NotAKid 10 Jul, 2018 @ 11:10am 
Is there a way to have a car spawn with the lowrider thing?
DangerKiddy  [developer] 10 Jul, 2018 @ 12:17pm 
Originally posted by NotAKid:
Is there a way to have a car spawn with the lowrider thing?

Yes, of course, just add

ent:SetLowRiderInstalled(true)

in OnSpawn hook
< >
Showing 1-2 of 2 comments
Per page: 1530 50