[FilterScript] Lumberjack Job
#1


Information

You can cut trees and load the logs into your Bobcat, then sell them to Log Buyers.

To cut a tree, you must go near one and press N while holding a chainsaw. You can buy a chainsaw from Log Buyers using /chainsaw command.

Config

#define CUTTING_TIME - Time required to cut a tree, in seconds. (Default: 8)
#define LOG_LIMIT - How many logs can players load to a Bobcat. (Default: 10)
#define ATTACH_INDEX - SetPlayerAttachedObject index for the log object, you can change it to avoid conflicts if you get any. (Default: 7)
#define TREE_RESPAWN - Time required to respawn a tree, in seconds. (Default: 300)
#define LOG_LIFETIME - Life time of a dropped log, in seconds. (Default: 120)
#define LOG_PRICE - Price of a log. (Default: 50)
#define CSAW_PRICE - Price of a chainsaw. (Default: 500)

Commands

/chainsaw - Allows you to buy a chainsaw from Log Buyers.

/log - Has 5 options which are load, take, takefromcar, takefromtree and sell.
-> /log load Loads the log you're carrying into a Bobcat.
-> /log take Takes a log from the ground.
-> /log takefromcar Takes a log from a Bobcat.
-> /log takefromtree Takes a log from a cut tree.
-> /log sell Sells the log you're carrying to a Log Buyer.

N Key - Drops the log you're carrying.

RCON Only:

Tree Related:
/createtree - Creates a tree on your location.
/edittree [tree id] - Allows you to edit the specified tree's position.
/removetree [tree id] - Removes the specified tree.

Log Buyer Related:
/createbuyer [skin id] - Creates a log buyer on your location.
/setbuyerskin [buyer id] [skin id] - Changes the specified buyer's skin.
/setbuyerpos [buyer id] - Changes the specified buyer's position to your position.
/removebuyer [buyer id] - Removes the specified log buyer.

Notes

* This script doesn't create any Bobcats, you have to add them.
* If you're getting compile errors, make sure you're using the latest versions of everything.

Credits

Emmet_ for Extended vehicle functions (although he removed the pastebin in the thread, you can get it from here)
[HLF]Southclaw for Progress Bars v2
Slice for SQLite Improved
Incognito for Streamer Plugin
Yashas for Improved ZCMD
****** & maddinat0r & Misiur for sscanf and YSI.

Downloads

Reply


Messages In This Thread
Lumberjack Job - by rootcause - 05.06.2016, 17:23
Re: Lumberjack Job - by TopShooter - 05.06.2016, 17:23
Re: Lumberjack Job - by Mijata - 05.06.2016, 17:42
Re: Lumberjack Job - by Stev - 05.06.2016, 17:57
Re: Lumberjack Job - by Dice_ - 06.06.2016, 00:13
Re: Lumberjack Job - by WhiteGhost - 06.06.2016, 00:18
Re: Lumberjack Job - by Amunra - 06.06.2016, 00:42
Re: Lumberjack Job - by Deniz1467 - 06.06.2016, 16:05
Re: Lumberjack Job - by PrO.GameR - 06.06.2016, 16:28
Re: Lumberjack Job - by yarakstyle91 - 06.06.2016, 16:33
Re: Lumberjack Job - by GTLS - 10.06.2016, 19:24
Re: Lumberjack Job - by ManIsHere - 11.06.2016, 05:41
Re: Lumberjack Job - by brianvans089 - 11.06.2016, 05:53
Re: Lumberjack Job - by GeorgeMcReary - 12.06.2016, 04:50
Re: Lumberjack Job - by ManIsHere - 14.06.2016, 05:37
Re: Lumberjack Job - by Dice_ - 14.06.2016, 06:40
Re: Lumberjack Job - by ManIsHere - 14.06.2016, 07:39
Re: Lumberjack Job - by SecretBoss - 14.06.2016, 09:49
Re: Lumberjack Job - by ManIsHere - 14.06.2016, 10:00
Re: Lumberjack Job - by GeorgeMcReary - 17.06.2016, 16:56
Re: Lumberjack Job - by Maurice_Smoke - 17.06.2016, 23:39
Re: Lumberjack Job - by abbas - 20.06.2016, 11:04
Re: Lumberjack Job - by ManIsHere - 20.06.2016, 16:40
Re: Lumberjack Job - by Dice_ - 21.06.2016, 08:38
Re: Lumberjack Job - by Touati - 22.06.2016, 01:57
Re: Lumberjack Job - by Thinh - 24.06.2016, 03:38
Re: Lumberjack Job - by LtFcN - 19.12.2016, 11:47
Re: Lumberjack Job - by FikShun - 19.12.2016, 13:01
Re: Lumberjack Job - by Oficer - 23.12.2016, 20:59
Re: Lumberjack Job - by Oficer - 23.12.2016, 21:28
Re: Lumberjack Job - by procotu - 04.01.2017, 18:42
Re: Lumberjack Job - by Oficer - 08.01.2017, 17:08
Re: Lumberjack Job - by STRIKER19501 - 06.09.2017, 20:43
Re: Lumberjack Job - by Nakul - 07.09.2017, 13:26
Re: Lumberjack Job - by oMa37 - 07.09.2017, 13:52
Re: Lumberjack Job - by B3x7K - 07.09.2017, 17:56
Re: Lumberjack Job - by BadJih - 07.09.2017, 19:05
Re: Lumberjack Job - by zsoolt997 - 08.09.2017, 04:16
Re: Lumberjack Job - by STRIKER19501 - 08.09.2017, 09:25
Re: Lumberjack Job - by B3x7K - 08.09.2017, 13:19

Forum Jump:


Users browsing this thread: 8 Guest(s)