mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 09:18:53 +00:00
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user