Garry's Mod

Garry's Mod

77 ratings
Medic Kiosk (for DarkRP)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
116.348 KB
27 Sep, 2016 @ 7:24pm
24 Apr, 2019 @ 11:01pm
25 Change Notes ( view )

Subscribe to download
Medic Kiosk (for DarkRP)

Description


It's boring being a medic, why not make some easy cash while you do it? The only thing you need to do is add it to your server collection. This addon doesn't use a custom model so adding it to your server won't slow your players from connecting.

Server Variables

Variable
Value
Description
medickiosk_maxprice
number value
The maximum price the medic can charge for people to use their Kiosk.
medickiosk_minprice
number value
The minimum price the medic can charge for people to use their Kiosk.
medickiosk_cooldown
number value
How long a player must wait before using the Medic Kiosk again. The value represents seconds.
You can change these options through your server console (web console).

Do not set these in your server config, or they will not work.

REMEMBER to place the Medic Kiosk in the blacklist for pocketable items or players will be able to use it as different jobs. This is very important. (see below)

Add these two items to the pocket blacklist located in darkrp_config/settings.lua.
["medic_kiosk"] = true, ["medic_kiosk_refill"] = true,

To add the Medic Kiosk to your TEAM_MEDIC job add these snippets to your DarkRP modification files.

In "/darkrp_customthings/categories.lua":
DarkRP.createCategory { name = "Medic Kiosk", -- The name of the category. categorises = "entities", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo". startExpanded = true, -- Whether the category is expanded when you open the F4 menu. color = Color(215, 180, 36, 255), -- The color of the category header. }

In "/darkrp_customthings/entities.lua":
DarkRP.createEntity("Medic Kiosk", { ent = "medic_kiosk", model = "models/props_lab/hevplate.mdl", price = 500, max = 2, cmd = "buymedickiosk", allowed = {TEAM_MEDIC}, category = "Medic Kiosk" }) DarkRP.createEntity("Medic Kiosk (Refill)", { ent = "medic_kiosk_refill", model = "models/healthvial.mdl", price = 100, max = 2, cmd = "buymedickioskrefill", allowed = {TEAM_MEDIC}, category = "Medic Kiosk" })




[github.com]

Found a bug? Open an issue on GitHub[github.com] and tell me what happened. If you attach a video, please show me the output in console (server AND client). If you don't want to use GitHub, that's understandable. Head over to my website[leeous.com] and choose a method of contact. Twitter is the best option if you want help ASAP.
32 Comments
Lualp 16 Aug, 2023 @ 3:02am 
not work
LosokosG 17 Jul, 2020 @ 7:33am 
Thats awesome! I am gonna use it on every single server i own:summer2019city:
WaviestBalloon 1 Nov, 2019 @ 5:19am 
A version that you can perma prop? Just an idea.
Leeous  [author] 12 Sep, 2019 @ 11:48pm 
Fixed and final release, for now. :babydodo:
Leeous  [author] 19 Mar, 2018 @ 6:55am 
Something seems broken, update coming soon hopefully.
Leeous  [author] 14 Nov, 2017 @ 5:10pm 
@Fudall ♥
Fudall 14 Nov, 2017 @ 3:43pm 
Many thanks, a 10/10 addon.
Leeous  [author] 14 Nov, 2017 @ 2:08am 
@Fudall, there are no custom models in this addon. Users won't have to download anything. If you're downloading it manually, all you have to do is put the Medic Kiosk folder in your /addons/ folder on your server. :)
Fudall 12 Nov, 2017 @ 9:43pm 
Does this contain custom content that is required to see the kiosk or can the file be placed into the server's directory without issue.
Leeous  [author] 12 Jun, 2017 @ 3:53pm 
Okay, it's done. This should fix the problem for you.
v1.1.1 [github.com]