From dc9a9b66ae8df0d912e3d650052996fa2a293f73 Mon Sep 17 00:00:00 2001 From: EinS4ckZwiebeln <66690565+EinS4ckZwiebeln@users.noreply.github.com> Date: Sun, 10 Nov 2024 12:52:37 +0100 Subject: [PATCH] validate player skin --- [core]/esx_skin/server/main.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/[core]/esx_skin/server/main.lua b/[core]/esx_skin/server/main.lua index 6538feb5..60ec63df 100644 --- a/[core]/esx_skin/server/main.lua +++ b/[core]/esx_skin/server/main.lua @@ -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