Garry's Mod Leaks

DarkRP Tow Truck Driver Job

Submitted by rickharrisonxx, , Thread ID: 41016

Thread Closed
19-07-2017, 07:10 PM
#1
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/3wgz8t...native.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]
Additional
If you own myGovernment Vehicle Stationscript, you can intergrate the tow truck into that script!
To do so, just add the tow truck to the government station file (below is the code), and set the position of the tow truck npc out of your map so nobody ever access that.
As in, fly far outside the map, and type towtrucknpc_setpos.

Here is the code for the tow truck in my government station script:
GovStation_Vehicles["GOV_TOWTRUCK"] = {
Name = "Tow Truck",
Description = "A tow truck used to tow vehicles.",
Model = "models/sickness/towtruckdr.mdl",
Script = "scripts/vehicles/tow.txt",
Health = 100,
VehicleSkin = 0,
AllowedTeamNames = {
"Tower",
},
AllowedTeams = {
TEAM_TOWER,
},
}

Insert that code in the govstation_config.lua file, next to the other government vehicles!


Content locked
This content has been locked. Please login or register in order to unlock it.
This hidden content has been reported as still working 0 times this month.
3 times in total

RE: DarkRP Tow Truck Driver Job

#2
Holy shit this looks awesome.

RE: DarkRP Tow Truck Driver Job

#3
Thank you for this addons that's cool for my server

RE: DarkRP Tow Truck Driver Job

#4
perfecto mam for the script

RE: DarkRP Tow Truck Driver Job

#5
Proper good idea, looks sick

RE: DarkRP Tow Truck Driver Job

#6
Latest version?
Thank you.

RE: DarkRP Tow Truck Driver Job

#7
need it for my server, thanks !

RE: DarkRP Tow Truck Driver Job

#8
interestant thing i will use it

RE: DarkRP Tow Truck Driver Job

#9
Good plugin i am burger king

RE: DarkRP Tow Truck Driver Job

#10
Thanks bro for sharing Wink

Users browsing this thread: 1 Guest(s)