Garry's Mod Leaks

DarkRP - Tow Truck Addon

Submitted by 2ponds, , Thread ID: 80887

Thread Closed
21-03-2018, 01:59 AM
#1
https://www.gmodstore.com/scripts/view/3...driver-job
Content locked
This content has been locked. Please login or register in order to unlock it.

DarkRP Support

DarkRP 2.6+[Image: tick.png]
Other custom versions of DarkRP are not supported, and don't count on my support if you're using a custom version of DarkRP with modified core features.
Description
This is an advanced DarkRP job. A job that actually has a purpose.
The tow truck driver (or tower) can tow vehicles by hooking their nose to the back of their tow truck, then drive it around.
When the tower has towed a vehicle, he or she can place a fine on the vehicle.
When the fine is placed, the vehicles owner will be notified, and the vehicles location will be marked on the owners screen.
When the owner tries to get into the towed vehicle, he or she will be ejected, and a fine menu will open.
Once the fine is paid, the car is "unlocked" and the text disappears, and the owner can drive it away.

Features
  • Tower job.
  • Tow truck vehicle for towers.
  • Realistically tow vehicles.
  • Place fines on vehicles.
  • Show distance and fine price on screen for vehicle owner.
  • Plenty of configs.
  • And much more!
Installation
This addon supports DarkRP 2.6.+
Other newer versions should also work. If they do not, please create a ticket so this can be sorted.

Extract "darkrptowtruckdriverjob" to your addons!
Once you've done that, you will want to put up the location for the tow npc, and the place for the tow truck to spawn.
To set the position of the tow npc, go to the location you want it to be in, and type towtrucknpc_setpos.
To activate this location, your server requires a restart.

To set the position of the tow truck spawn, go to the location you want it to be in, and type towtruck_setpos.
This is activated instantly.

Remember to aim the direction you want the npc and truck to spawn in. Your angle matters!
You must be an administrator on your server to perform these actions.
How To
You can hook cars to each other in different ways as a tower.
Either byright clickingfrom inside your towtruck, or using the attach weapon that comes with the tow truck driver job.

Content
The car used in this addon is Sickness Models.
To download Sickness Models, install this with Tortoise SVN.
Link to Tortoise SVN:http://tortoisesvn.net/downloads.html
Link to Sickness Models:http://subversion.assembla.com/svn/SicknessModel
Alternative Sickness Models:http://www.mediafire.com/download/3wgz8tyyvnm3av3/Sickness+Models+SVN+Alternative.zip

There is no content included in the download. It is up to you to put Sickness Models on your FastDL!
Please read the "README TO FIX MISSING SOUNDS!!!!!" in Sickness Models to install sounds and vehicle scripts.

Customizing
To customize the addons settings, go to DarkRP Tow Truck Driver Job/lua/autorun/tow_config.lua.
In the top of the file you can customize the settings shown below.

TOWTRUCK_VehicleModel = "models/sickness/towtruckdr.mdl" -- The model of the tow truck. Defaults to the tow truck from sickness models.
TOWTRUCK_MaxTrucks = 2 -- Maximum amount of tow trucks allowed at one time. [Default = 2]
TOWTRUCK_VehicleScript = "scripts/vehicles/tow.txt" -- The vehicle script for the tow truck. Defaults to the one from sickness models.
TOWTRUCK_Health = 100 -- The health of the tow truck. This only really matters if you have a vehicle damage script [Default = 100]
TOWTRUCK_NPCModel = "models/monk.mdl" -- The model of the npc to retrieve a tow truck.

TOW_MaxFine = 500 -- The maximum fine a tower can put on a vehicle. [Default = 500]

Users browsing this thread: 4 Guest(s)