NotSomething0 / Valkyrie

Open source FiveM anticheat
GNU General Public License v3.0
76 stars 21 forks source link

Feature: support custom punishment options #15

Open NotSomething0 opened 1 year ago

NotSomething0 commented 1 year ago

Certain punishments may be determined by the user to be more or less harmful than one another, so we should allow users to specify punishments options, something like the following could work in the config file.

set vac:internal:punishment_options {
  "event": "kick",
  "explosion": "412214124",
  "chat": "log"
}

Currently we send a punishment type via a hard coded number as seen in sv_events but this seems like a much better option. This should abstract VPlayer with a new function aptly named "punish" this can then route the punishment to the appropriate function.