Skip to content

Commit

Permalink
Merge pull request #254 from Troughy/Troughy-patch-1
Browse files Browse the repository at this point in the history
Fix a vulnerability regarding character deletion
  • Loading branch information
GhzGarage authored Nov 13, 2024
2 parents 8283042 + 772f4f5 commit f2fb43e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ end)

RegisterNetEvent('qb-multicharacter:server:deleteCharacter', function(citizenid)
local src = source
if not Config.EnableDeleteButton then return end
QBCore.Player.DeleteCharacter(src, citizenid)
TriggerClientEvent('QBCore:Notify', src, Lang:t("notifications.char_deleted") , "success")
end)
Expand Down

0 comments on commit f2fb43e

Please sign in to comment.