Merge pull request #1447 from EinS4ckZwiebeln/patch-01

fix(esx_skin): Validate player skin before saving to db
This commit is contained in:
Kasey Fitton
2024-11-10 12:18:22 +00:00
committed by GitHub
+3
View File
@@ -1,4 +1,7 @@
RegisterNetEvent("esx_skin:save", function(skin)
if not skin or type(skin) ~= "table" then
return
end
local xPlayer = ESX.GetPlayerFromId(source)
if not ESX.GetConfig().CustomInventory then