qbcore-framework / qb-multicharacter

Multi-Character System Used With QB-Core :man: :woman:
GNU General Public License v3.0
32 stars 237 forks source link

Add admin command #139

Closed Z3rio closed 2 years ago

Z3rio commented 2 years ago

This adds the admin command suggested in issue #76. Via this command god users can delete other players characters upon need for it

Describe Pull request This has been added since it allows server owners and high staff members to control their characters alot easierly. Maybe you dont want to give out the entire VPS / SQL access to someone just so they can delete characters from someone, well this solves the issue. This can now be done ingame instead!

If your PR is to fix an issue mention that issue here issue #76

Questions (please complete the following information):

GhzGarage commented 2 years ago

This needs changed entirely. Register the command through QBCore on the server with the god parameter so it's locked, remove the config option, take the players id as the argument and then use the function QBCore.Player.DeleteCharacter instead of defining a redundant table