Added /save <playerId> and /saveall commands

This commit is contained in:
ElPumpo
2020-03-23 12:10:25 +01:00
parent d8e4e8d991
commit 0fc8c4d9c5
9 changed files with 26 additions and 0 deletions
+10
View File
@@ -116,3 +116,13 @@ end, true, {help = _U('command_setgroup'), validate = true, arguments = {
{name = 'playerId', help = _U('commandgeneric_playerid'), type = 'player'},
{name = 'group', help = _U('command_setgroup_group'), type = 'string'},
}})
ESX.RegisterCommand('save', 'admin', function(xPlayer, args, showError)
ESX.SavePlayer(args.playerId)
end, true, {help = _U('command_save'), validate = true, arguments = {
{name = 'playerId', help = _U('commandgeneric_playerid'), type = 'player'}
}})
ESX.RegisterCommand('saveall', 'admin', function(xPlayer, args, showError)
ESX.SavePlayers()
end, true, {help = _U('command_saveall')})