mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
fix: (Metadata) string check on getMeta
This commit is contained in:
@@ -0,0 +1 @@
|
||||
test
|
||||
@@ -578,6 +578,10 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
|
||||
function self.getMeta(index, subIndex)
|
||||
if index then
|
||||
|
||||
if type(index) ~= "string" then
|
||||
return print("[^1ERROR^7] xPlayer.getMeta ^5index^7 should be ^5string^7!")
|
||||
end
|
||||
|
||||
if self.meta[index] then
|
||||
|
||||
if subIndex and type(self.meta[index]) == "table" and self.meta[index][subIndex] then
|
||||
|
||||
Reference in New Issue
Block a user