Usage
On this page: How to use script in game
After installation, remember to refresh scripts (command /refresh
) and start script (command /start KFines
)
Getting item
To create traffic ticket, player needs to have police job (configured in KFines/shared/config.lua
) and item traffic_tickets_block
.
Creating tickets
Player with police job can use traffic_tickets_block
item and create ticket. To send a ticket, you need to be close to the player, and after using the item, you need to fill all the gaps.
Make sure, that gaps about citizen are correctly filled! Date of birth must be in the same format as in database!
Paying tickets
The player can pay for the ticket via UI that has been displayed after sending the ticket, or via NPC. Location of NPC can be configured in the config file. When the player forgot to pay for the ticket, after the time specified in the config, the script will automatically take money from the player (even if is offline) multiplied by the modifier from the config file.
You can only pay for ticket in NPCs related to job of ticket sender. So, according to default config, you can't pay for ticket in LSPD NPC, that has been created by Sheriff. You need to use Sheriff NPC
Ticket history
Player can check all paid tickets via NPC. Boss of police job, can also look at history via additional button in the menu of NPC. Server staff can check info about tickets in the database.
Script will create table kfines
after first start
Logs
You can configure discord webhook in the config file. After that, the script will send logs of creating and paying for tickets.