/esx_refundsystem

Remake of esx_refundsystem by byK3#7147, it now has logs on every action and chat messages on the actions. I made it in dutch so you can change it if you want

Primary LanguageLuaMIT LicenseMIT

refundsystem

==== Refund System - byK3#7147 ====

Remake of the refund system from byK3#7147, remade by nick.vm. Whats different? i added logs to every action with the sentodiscord function he embedded, all the actions are in dutch so keep that in mind you might need to change the language of your chat messages and logs.

image image image image

image

=== INSTRUCATION ===

1. Add the resource to your server.cfg
2. Add the webhook to the config.lua
3. Add the permissions to the config.lua
4. Add the commands to the config.lua
5. Change the logs and chat notifications to your own messages


Current supported types: item, money, bank, black_money, weapon
If you use weapon as type, the name must be the weapon hash (e.g. WEAPON_PISTOL)
If you use item as type, the name must be the item name (e.g. bread)
If you use money, bank or black_money as type, the name must be nil so just leave it empty (e.g. /refund [steam:id] [type] [amount]


Check server.lua to see how the commands work and how to add more commands if you want to
Also you need to adjust the SendToDiscord function yourself - I wrote the function, just enter where you want

==== Refund System - byK3#7147 ====