Garry's Mod Leaks

Simple Cigarette Factory ? Leak

Submitted by Deleted_326403, , Thread ID: 210764

Thread Closed
Deleted_326403
Closed Account
Level:
8
Reputation:
0
Posts:
88
Likes:
7
Credits:
121
29-06-2021, 04:47 AM
#1
It's a simple, yet fun script that allows players to make money by selling illegal cigarettes.
Cigarette Factory


What is Cigarette Factory?

It's a simple, yet fun script that allows players to make money by selling illegal cigarettes. I think it seems like a really fresh and unique idea, that I haven't seen here before. It fits almost any roleplay server - unlike meth and some other drugs, illegal cigarettes are popular in many countries. The script comes with custom models and sounds (I know these models aren't perfect, but... hey I'm new into that)

How does it actually work?

The main idea is very simple. All you have to do is buy a machine and supply it with both tobacco and paper. If everything goes smoothly, the machine should start producing cigarette packs. Now you can either pack them into a box or use one (if you've enabled compatibility with cigarette swep in the config). Boxes with cigarette packs can be picked up and sold in a nearest export van (default sell mode) or instantly sold by clicking E on them (instant sell mode). If a player fails to deliever held boxes and dies, he drops them.

Machines can also be upgraded, as there are two upgrades: engine upgrade and storage upgrade - Engine upgrade basicly speeds up the entire productions process, while storage upgrade allows you to store more tobacco and paper in the machine.

Considering these machines are illegal they're also destructible. Their health can be tweaked in the config, however police batton destroys them in one hit.

Can you change / add something?

Most of the stuff is tweakable due to the config. If you're really concerned about something then feel free to send me a support ticket. If you have an interesting idea that isn't too demanding just ask me.

This script is also easily translatable. Currently there are 24 phrases that need to be translated.

What do I need to know as an admin?

Considering the fact that this script uses vans as a sort of cigarette selling point you need to know they will disappear with server restart like any other entity. To prevent that use cf_save command as an admin (This will make them appear even after server restarts). You can also test already saved vans using the cf_load command.

Bear in mind that every server has a different economy and you'll probably have to tweak the config a little bit. Probably change how much does a cigarette pack cost.

[Image: 45be4619554eb49adc180d3f3ec1dd57.png]

Download :

https://www.dropbox.com/s/s90bdx4skall0o...9.zip?dl=0

https://www.mediafire.com/file/22kzccuus...9.zip/file

https://www.gmodstore.com/market/view/5750

Users browsing this thread: 1 Guest(s)