Merge pull request #8 from Santagain/patch-1

Correction
This commit is contained in:
RikoDEV
2020-03-28 06:32:16 +01:00
committed by GitHub
+2 -2
View File
@@ -98,12 +98,12 @@ function DeleteCharacter(identifier, charid)
end
function GetSpawnPos(source)
local SpawnPos = MySQLAsyncExecute("SELECT `position` FROM `users` WHERE `identifier` = '"..GetRockstarID(source).."'")
local SpawnPos = MySQLAsyncExecute("SELECT `position` FROM `users` WHERE `identifier` = '"..GetIdentifierWithoutLicense(GetRockstarID(source)).."'")
return json.decode(SpawnPos[1].position)
end
function GetIdentifierWithoutLicense(Identifier)
return string.gsub(Identifier, "license", "")
return string.gsub(Identifier, "license:", "")
end
function GetRockstarID(playerId)