Garry's Mod Leaks
[LEAK] 3D Car Dealer 2
Submitted by rafaelcomepastel, 06-02-2018, 03:50 AM, Thread ID: 73755
Thread Closed
3D Car Dealer 2 : 4.0 UPDATE
The King of Car dealer
3D Car dealer 2 is more enhanced and optimized car dealer. which 80% of codes are recoded from stratch.
Quick Video
Special Features
- Fully Vitually generated 3D Workspace area.
- Supports txt data saving method and MySQL ( mysqloo module / You need mysqloo module installed. )
- Test Drive : Allows player to spawn cars for free to test the cars. car will be removed after few minutes later.
- Bay : Place bay on the map. so player can spawn cars on the bay.
- Advanced Tuner : Photoshop-inspired Tuner allow you to tune your cars easily. you can put Underneon , LED scripts,Rear Lights , Head Lights , Horn , Speedometer , Exhaust
- GTA5 Inpired Garage : Allows you to see whole cars you own. its just amazing.
- New way to place cars : Changes your vision to top-view mode. and allow you to choose car bays where you want to spawn cars.
- And lots more.
Preset : Adding cars.
- You may goto lua/autorun/3DCarDealer_AddCars.lua to add/remove cars.
- there are some pre-made presets. there is detail
local TB2Insert = {} TB2Insert.VehicleName = "VEHICLE NAME" TB2Insert.CarName = "CAR PRINT NAME" TB2Insert.CarPrice = 100 TB2Insert.CarRefund = 100 TB2Insert.IsSCar = true TB2Insert.Description = "DESCRIPTIONS" TB2Insert.AvaliableTeam = {TEAM_POLICE,TEAM_MOB} TB2Insert.AvaliableGroup = {"superadmin","admin"}VehicleName :: Its unique name of cars -- HOW TO GET NAMES? -- Case 1 : SCars >> goto SCARADDON/lua/entities/ <random cars folder > / shared.lua you may see like this ' ENT.PrintName = "Junker1" ' if its right car foder. "Junker1" is Vehicle name. Case 2 : TDM Cars >> goto TDMADDON/lua/autorun/ < random cars lua file > you may see like this ' list.Set("Vehicles", "350ztdm", V) ' "350ztdm" is Vehicle name.CarName :: Print name of cars. can be seen car shopCarPrice , CarRefund :: you may know these.IsSCar :: < VERY IMPORTANT > if its SCar, set to ' true ' if not, remove it or set to ' false 'Description :: DescriptionsAvaliableTeam :: You can limit cars specific job only.AvaliableGroup :: You can limit cars specific ULX Group user.
Preset : Limiting Tune parts for specific ulx / cars only.
- ULX Limitation for each tune parts.
- To use this, goto lua/tuner_extensions/ PARTS_YOU_WANT.lua
- Now you should add, these. if you don't know where to add, just add them below STR.Max
- This is ULX Limitation.
- This is ULX Limitation.
Code:
STR:SetULXLimitationMessage("This part is limited for only admin and VIP users.")
STR:AddULXLimitation("vvip")
STR:AddULXLimitation("vip")
STR:AddULXLimitation("admin")
STR:AddULXLimitation("owner")
Code:
SetULXLimitationMessage : you can manually set error messages.
AddULXLimitation : you can add ulx groups. as many as you want.
- This is Vehicle Limitation.
Code:
STR:SetVehicleLimitationMessage("Public vehicles are not allowed to attach neon light!")
STR:AddVehicleLimitation("bus") -- you put VehicleName here. which is TB2Insert.VehicleName at Addcars.lua
STR:AddVehicleLimitation("taxi") -- you put VehicleName here. which is TB2Insert.VehicleName at Addcars.lua
Code:
SetVehicleLimitationMessage : you can manually set error messages.
AddVehicleLimitation : you can add ulx groups. as many as you want.
Unlike ULX Limitation, this limits only vehicles added.
Every Console commands you can use.
- D3DCardealer_save : saves every NPCs and Bays place on the map.
- RXCar_GenerateTDMCodes and RXCar_GenerateSCarCodes : Tired to add cars one by one? just type this on your gmod console. then you will get codes for all vehicles installed on your server. how easy.
- cardealer_convert1to2 : This is special command for CD1 user. see below
- cardealer_convertdatatxt2mysql : This is special command. see below also
About 3D Car dealer 1
3D Car dealer 1 is not supported anymore. im giving free access to 3D Car dealer 2 if you bought CD1.
Send me support ticket for this.
Moving CD1 Data Into CD2.
- you can bring your inventory data into CD2. but Tuning parts can't not be used in CD2. you have to tune your cars again.
- Install Car dealer 2. and type this on your gmod console ( command : cardealer_convert1to2 )
- And goto your server console and see it working. And please don't do anything when it working.
- Plus, Addcars format is completely same. so just use your old addcars code!
- Install Car dealer 2. and type this on your gmod console ( command : cardealer_convert1to2 )
Transferring Inventory data from txt to MySQL
- If you want to use mysql and used txt data saving method before, you will need to move the data to mysql. ( If you're new to CD2, you don't need to do that )
- You will need to install mysql and mysql module.
- Swapping Data Provider:: Goto 3d_cardealer/Data Providers/dataprovider<YOUR MODULE>.txt and copy the codes all. And now paste them into 3d_car_dealer/lua/autorun/server/RXCar_DataProvider.lua
- Configure:: You will need to configure some information inside the data provider. like account name and password, etc.
- Setup your mysql databases:: You need to create database and tables. i made sql code to help you make table easy.
- Transfer:: Now Type this on your gmod console and goto your server console and see its converting. and don't do anything when it working on.
- Swapping Data Provider:: Goto 3d_cardealer/Data Providers/dataprovider<YOUR MODULE>.txt and copy the codes all. And now paste them into 3d_car_dealer/lua/autorun/server/RXCar_DataProvider.lua
- 4-1.Command for mysqloo module:: ' cardealer_convertdatatxt2mysql mysqloo '
- 4-2.Command for tmysql4module:: ' cardealer_convertdatatxt2mysql tmysql4 '
See how it works.
This hidden content has been reported as not working 0 times this month.
2 times in total
Users browsing this thread: 6 Guest(s)