DarkRP 2.5+ - TCB Car Dealer

https://www.thecodingbeast.com/img/products/cardealer.png?v=3

Because of the lack of free car dealers I decided to make my own.
It features all the default things like permanent saving, buying, selling, various setting but also have test driving.**

Preview:
**
https://i.gyazo.com/baa87d9c8f362c56895df0568874f515.jpg[/t][t]https://i.gyazo.com/2dd7338aad5234eb9f0a2b5f0e401d44.jpg[/t][t]https://i.gyazo.com/222e4dd8dabf09ff01a6ab7f8af5c6bd.jpg[/t][t]https://i.gyazo.com/18ca139385628d6fc3ca2c98eb0a9e44.jpg[/t]

Config:
[t]https://i.gyazo.com/e98c64ef753611c21e992d0a18b22a34.png

[LUA]
TCBDealer.vehicleTable[“class”] = {
name = “name”,
mdl = “mdl”,
price = price,
color = color,

customCheck = customCheckm,
CustomCheckFailMsg = "CustomCheckFailMsg",

}

Required: class and price.
Optional: name, mdl, color, customCheck and CustomCheckFailMsg.
[/LUA]

** Installation:
**

Download:
Products page - https://www.thecodingbeast.com/products
GitHub page - https://github.com/TheCodingBeast/TCB_CarDealer

LOOKS AWESOME!

I use this with Photon and when ever I try to spawn a LW car with it, the car spawns in a random color plain, then all of the ELS is added in even though it shouldn’t. So basically:

  1. Can you add Photon Support
  2. Ability to disable random color on spawn? (For Emergency vehicles or other with skins)
    It looks like a really good mod and great that you are giving it out free.
    Thanks!

Update: I can provide more information if needed.

Why does this script have a colour scheme of a kids toy xD

I will add support for that when I come home.

Yeah because having blue, green, white and random colors for the vehicles makes it look like a kid toy? Thanks for the indsight [sp]kid[/sp].

Try making something as good, then come back.

Release 1.1:

  • Photon support. (Not tested)
  • Button to store vehicle after being spawned.
  • Forced color option for vehicles.
  • Setting to change frame title.
  • Setting to disable random colors.

Screenshots updated!

:3


(User was banned for this post ("shitposting/useless reply" - NiandraLades))

Not working for me.

Here is where it is located: https://gyazo.com/d21034f2b20372751ed2e46b26340d2a

These are the settings: https://gyazo.com/b71210f986bbd71038ccf7c84aabe582

My physics gun is where the pos is and the parking spaces beyond is where the spawns are:https://gyazo.com/ae876c0a479d0ab0c5cac02ea79f8e88

P.S None of the others work like the hud or f4. are there threads for them?
Anyway neither of them come up I have disabled the other ones.

Any help??

You need to take the ‘tcb_car’ folder out of the master folder like I did in the video.
For the other ones take a look at the instructions. But it’s pretty much the same.

Ignore this comment. Need to find how to delete it??

Never fail to impress good work man! and nice hud!

getting new errors now

no idea what to do??

Let me know if Photon fucks up too much. The application of skins and equipment and shit should happen like .5 seconds after spawn, but I’ve never done much with stuff like car dealers, so if anything is whacky I’ll take a look.

Works GREAT with Photon now. Thanks to both of you for creating amazing mods and keeping them free! It’s MUCH appreciated!

Try this:

[LUA]
TCBDealer.dealerSpawns[“rp_california_r”] = {
{
pos = Vector(-4605, -1823, 64),
ang = Angle(0, -90, 0),
mdl = “models/Characters/Hostage_01.mdl”,

	spawns = {
		{
			pos = Vector(912, -860, -140),
			ang = Angle(30, 0, 0)
		},
		{
			pos = Vector(163, -960, -139),
			ang = Angle(0, 180, 0)
		}
	}
}

}
[/LUA]

[editline]18th August 2015[/editline]

Perfect! Was easier than i expected :slight_smile:

The first thing I did for my own vehicle system table, was to use the Entity name instead of name and model. Makes it much easier to add new cars, since you can copy the Entity name from the vehicle tab.
That and getting the data from list.Get(“Vehicle”) is just some advice :sax:

Release 1.2:

  • Name and model is no longer required. (It will now automatically detect the values)
  • Color picker button besides close button if enabled.
  • Added the ability to disable the bubble above the car dealer.

https://i.gyazo.com/da63d3528bf860dcd4db7604240088cc.png[/t][t]https://i.gyazo.com/d65cb92d9c202910f0f61a7b3e697cf7.png

Thanks for the suggestion!

http://www.facepunch.com/fp/ratings/heart.png

Maybe in the next update you could make it so when a person changes their job, their car will despawn also a config option to change how close you need a car to store it? :badzing:

Yes hello i am getting this strange error can someone help me figure it out or tell me if i did something wrong.

[ERROR] addons/darkrpmodification/lua/darkrp_modules/tcb_car/sv_cardealer.lua:114: bad argument #1 to ‘PrecacheModel’ (string expected, got nil)

  1. PrecacheModel - [C]:-1
  2. fn - addons/darkrpmodification/lua/darkrp_modules/tcb_car/sv_cardealer.lua:114
    3. unknown - addons/ulib/lua/ulib/shared/hook.lua:179

And this:

Couldn’t include file ‘sh_config.lua’ (File not found) (@addons/darkrpmodification/lua/darkrp_modules/tcb_car/sv_cardealer.lua (line 12))

I have downloaded it several times i’ve extracted the tcb_car into my darkrp modification module folder. I have set the spawns for both the npc and car’s. The npc shows up but whenever i try to buy a car or test drive it says “Spawn point was not found”. Please fix!!!