• Setting up cars in a dealership
    7 replies, posted
I'm trying to run a Role play server soon and it came to my head for a car dealership filled with cars outside for display. I know I need to get Position/Angle of cars, which I have got. But I need to know how to put them in a script to load them into server. I'm placing a mix of TDM cars, SGM, and LW vehicles around the dealership on Evocity v33x. I want the cars to have a display of the custom body groups, skin, and color. Can someone give me a run down on how to set this up? [lua]//{Vector(), Angle(), Model = ""}, local CarDealerShipv4b1Cars = { {Vector(6448.236328125, -6103.2065429688, 65.478813171387), Angle( 0, 135.36254882813, 0.384521484375), 'models/sentry/boss302.mdl'}, --SGM 2012 Mustang Boss 302 {Vector(6260.0649414063, -6025.1030273438, 62.548851013184), Angle( 0.06591796875, 178.12133789063, 0.02197265625), 'models/sentry/ram3500.mdl'}, --SGM Dodge Ram 3500 {Vector(6071.2602539063, -6075.248046875, 63.758865356445), Angle( 0, -148.93615722656, 0.032958984375), 'models/sentry/fordgt.mdl'}, --SGM 2016 Ford GT {Vector(5687.7290039063, -4894.2504882813, 62.423717498779), Angle( -0.0164794921875, 90.368041992188, 0.076904296875), 'models/tdmcars/for_raptor.mdl'}, --TDM Ford Raptor {Vector(5182.1005859375, -4889.6586914063, 61.737976074219), Angle( -0.0054931640625, 134.68688964844, 0.296630859375), 'models/tdmcars/bmw_m3_gtr.mdl'}, --TDM BMW M3 GTR {Vector(4966.7700195313, -4881.904296875, 64.572196960449), Angle( 0.02197265625, 178.88488769531, -0.2197265625), 'models/sentry/15mustanggt.mdl'}, --SGM 2015 Mustang GT {Vector(4744.7705078125, -4892.0615234375, 62.022605895996), Angle( 0.010986328125, -136.56005859375, -0.2581787109375), 'models/tdmcars/s5.mdl'}, --TDM Audi S5 {Vector(4540.470703125, -4901.0517578125, 60.978324890137), Angle( -0.032958984375, -136.70837402344, -0.0384521484375), 'models/tdmcars/wrangler.mdl'}, --TDM Jeep Wrangler {Vector(5725.2377929688, -4475.1850585938, 61.756050109863), Angle( 0, 123.26110839844, 0.1043701171875), 'models/sentry/p1.mdl'}, --SGM 2014 McLaren P1 {Vector(5712.1420898438, -4226.5625, 64.551254272461), Angle( 0, 129.78698730469, 0.3955078125), 'models/sentry/charger.mdl'}, --SGM 1969 Dodge Charger {Vector(5711.4956054688, -3980.9577636719, 64.535278320313), Angle( -0.0604248046875, 131.748046875, 0.0933837890625), 'models/sentry/shelbycobra.mdl'}, --SGM 1965 Shelby Cobra 427 {Vector(4773.0986328125, -4620.8823242188, 55.222312927246), Angle( -0.02197265625, -76.168212890625, 0.010986328125), 'models/lonewolfie/mer_c63_amg.mdl'}, --LW Mercedes C63 AMG {Vector(4773.521484375, -4469.0068359375, 64.178268432617), Angle( 0.02197265625, -78.431396484375, 0.4229736328125), 'models/tdmcars/chev_camzl1.mdl'}, --TDM Chevrolet Camero ZL1 {Vector(4768.1762695313, -4278.3037109375, 62.422512054443), Angle( -0.02197265625, -82.161254882813, -0.164794921875), 'models/lonewolfie/nfs_mustanggt.mdl'}, --LW 2012 Mustang GT {Vector(5306.08203125, -3511.7297363281, 227.7749786377), Angle( 0.0274658203125, 158.67004394531, 0.010986328125), 'models/tdmcars/sub_wrxsti05.mdl'}, --TDM 2005 Subaru WRX STI {Vector(5510.9340820313, -3513.048828125, 227.46873474121), Angle( 0.0164794921875, 159.78515625, -0.076904296875), 'models/tdmcars/vip_viper.mdl'}, --TDM Dodge Viper {Vector(5716.3955078125, -3527.7531738281, 228.11367797852), Angle( 0, 153.57238769531, -0.3515625), 'models/tdmcars/reventon_roadster.mdl'} --TDM Lambo Reventon Roadster }[/lua] Basiclly I need a way to add color/body groups to those lines
Anybody? I just need to know how to put the bodygroups/colors on the cars.
[url]http://steamcommunity.com/sharedfiles/filedetails/?id=121672707[/url] it shows you how to change bodygroups and color cars
You don't understand, I know how to set bodygroups when its in-game. But I'm trying to run a script where it spawns the cars as prop_dynamic at a dealership on the map I'm using. I got the positions/Models setup. But I want to be able to have the body groups show and able to change the colors. If its possible.
Anybody, once again?
Well.... [url]https://wiki.garrysmod.com/page/Entity/SetBodygroup[/url] [url]https://wiki.garrysmod.com/page/Entity/SetColor[/url] Those two methods should be all that you need tbh, but there are a few different ways of implementing this.
What car dealer are you using?
Thanks! Everything worked out the way it should.
Sorry, you need to Log In to post a reply to this thread.