Implemented xPlayer.setLastPosition and fixed saving coords

This commit is contained in:
ElPumpo
2019-02-28 12:59:44 +01:00
parent 9a39f83aee
commit e976de722b
3 changed files with 6 additions and 2 deletions
+4
View File
@@ -208,6 +208,10 @@ function CreateExtendedPlayer(player, accounts, inventory, job, loadout, name, l
return self.lastPosition
end
self.setLastPosition = function(position)
self.lastPosition = position
end
self.getMissingAccounts = function(cb)
MySQL.Async.fetchAll('SELECT * FROM `user_accounts` WHERE `identifier` = @identifier', {
['@identifier'] = self.getIdentifier()