Garry's Mod

Garry's Mod

Not enough ratings
[DarkRP] Healing Station
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Roleplay
File Size
Posted
Updated
1.118 KB
5 Apr, 2018 @ 8:01pm
5 Apr, 2018 @ 10:07pm
2 Change Notes ( view )

Subscribe to download
[DarkRP] Healing Station

In 1 collection by Jared From Subway
test
80 items
Description
Healing station entity. Has a limited charge and is able to be destroyed.

WILL NOT WORK IN SINGLEPLAYER! FOR USE WITH DARKRP ONLY!

The entity name is healing_station

Settings: Place these in settings.lua in darkrpmodification\lua\darkrp_config

-- healthstationcharge - Starting charge of the health station entity. Default 250
GM.Config.healthstationcharge = 250
-- healthstationhealth - Starting health of the health station entity. Default 150
GM.Config.healthstationhealth = 150
-- healthstationdelay - Set the delay between each health point given in milliseconds. Default 50
GM.Config.healthstationdelay = 50

IMPORTANT: Place this in GM.Config.PocketBlacklist to prevent resetting the charge
["healing_station"] = true,

Example Entity: Place this in entities.lua in darkrpmodification\lua\darkrp_customthings

DarkRP.createEntity("Healing Station", {
ent = "healing_station",
model = "models/props_combine/health_charger001.mdl",
price = 2500,
max = 5,
cmd = "buyhealingstation",
allowed = {TEAM_MEDIC},
})