How to install ?
Just drag and drop the pjdelivery folder into your server's addons folder, something like: garrysmod/addons/*here*
You also need to add this workshop content to your server collection to have all icons and props !
And that's all, just reboot your server and then you can use your new addon !
If you use the base truck, you need to add this item to your server collection
Configuration:
If you don't agree with some defaults configurations you can edit the configuration file as more as you want! Just go into pjdelivery/lua/autorun/sh_pjdelivery.lua
And then configure what ever you want ! Just be careful to don't edit the code at the end of the file or else the addon could have some problems !
If you need some help with the configuration, feel free to comment the addon, or just pm me ;)
Know issues: (actually this not issues made by my addon ^^)
- Can't right click on doors/dropbox/etc... : It's because you don't allowed FPP to use the toolgun on world/blocked entities. To fix that: Go to Utilities (in the right top corner of the prop menu), click on Admin Setting from the Falco's prop protection category, expend Toolgun options, and check "Admin can use tool on world entities" and "Admins can use tool on blocked entities". And then you can retry and it's good !
Toolgun use:
The toolgun is pretty simple to use: All that is detailed here need to be done with the tool gun in hands, and in "Drop Box Creator" mode
- Dropbox create: Assign an unique name to your drop-box, then left-click where you want, after that you can select the doors to be assigned by right clicking on it, and once you dropbox is done, press reload anywhere to save it.
- NOTE:
- If a door is selected, only the door owner can use this dropbox
- If you need to setup a dropbox for an apartment, you can select all doors, just the entry ones of each
- If you don't select any door this dropbox will be free to be used for every players.
- Dropbox edit: Edit the drop-box positions by physgun it, and/or edit the dropbox's name and then press Reload to save and make it permanent.
- Dropbox delete: Right click on the drop-box.
For the storage center, you need to switch the toolgun mode to "Storage Center Creator":
- Storage centers creation: Just left click anywhere?
- Storage center edit: Press "Reload" after physguned the pnj to save the new positions in the data.
- Storage center deletion: Right click on the storage center which need to be deleted.
- NOTE:
- If their is no storage center, a message will be shown every time you try to make a dropbox. Also the players will be unable to use the delivery system
For the truck retriever, select toolgun mode to "Truck Retriever Creator":
- Truck retriever creation: Left click where you want the pnj to be, and then left click to place some truck spawn positions, as more as you place better it is ! To save press 'Reload'.
- Truck retriever edit: Just delete the old truck retriever pnj and create a new one.
- Truck retriever remove: Right click on the truck retriever pnj that you want to remove.
- NOTE:
- Sometimes, just after a placement of a truck retriever it don't work, just cleanup your map or restart your server to solve that.
- Don't add a spawn positions too close to the truck retriever pnj, there is a check to see if there is some props/players close to the spawn position, if yes the truck can"t spawn.
- When you place a spawn platform, you can physgun it ! Don't forget to save after !
For the store PNJ, select "Store PNJ Creator" in the tools list:
- Store configuration: Before create your store, you need to set some info about him, like his name, his model, what do he is selling ? You can edit these info after !
- Store create: Once you finished the configuration of your store, you can left click where you want the store to be.
- Store edit: If you made a mistake in you store configuration, you can re set the info in the tool menu and then press 'Reload' on the store PNJ which needs to be edited.
- Store delete: Right click on the store to delete.
- NOTE:
- When you edit the store, a message can shows which says: "Not found" or something like this, just clean up your map and retry !
- If you need a new category to your store, create a DarkRP Category in you darkrpmodification and edit your items to this category.