Garry's Mod Leaks

Tow Truck Driver Job! (Latest Version!)

Submitted by yeahboyy, , Thread ID: 48429

Thread Closed
24-09-2017, 12:03 PM
#1
[Image: 5f6465d3025b21325d18dadee324f72a.png]

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!

Aisakax.png" loading="lazy" alt="[Image: text-logoAisakax.png]" class="mycode_img" referrerpolicy="no-referrer" />

Content locked
This content has been locked. Please login or register in order to unlock it.

RE: Tow Truck Driver Job! (Latest Version!)

#2
I highly recommend this mod, especially coupled with StateTrooper's Larime tow truck and VCMod ELS so you can get the ambers. I mainlined Tow Truck Driver for hours when I first joined a server that had it once.

RE: Tow Truck Driver Job! (Latest Version!)

#3
a very good addon that adds realism to the server, thank you very much for this wonderful addon!

RE: Tow Truck Driver Job! (Latest Version!)

#4
The link is dead it just redirects me!!!! Please fix

RE: Tow Truck Driver Job! (Latest Version!)

#5
Thank you for addon !!!!!!!!!!!!!!!!!!

Users browsing this thread: 3 Guest(s)