Merge pull request #1129 from MoskalykA/correction-of-lint-errors

refactor: correction of lint errors
This commit is contained in:
TheFantomas
2023-07-26 18:19:37 +02:00
committed by GitHub
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -331,7 +331,7 @@ if not Config.OxInventory then
end)
RegisterNetEvent('esx:removeWeapon')
AddEventHandler('esx:removeWeapon', function(weapon)
AddEventHandler('esx:removeWeapon', function()
print("[^1ERROR^7] event ^5'esx:removeWeapon'^7 Has Been Removed. Please use ^5xPlayer.removeWeapon^7 Instead!")
end)
+1 -1
View File
@@ -462,7 +462,7 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
function self.removeWeapon(weaponName)
local weaponLabel, playerPed = nil, GetPlayerPed(self.source)
if not playerPed then
if not playerPed then
return print("[^1ERROR^7] xPlayer.removeWeapon ^5invalid^7 player ped!")
end
-1
View File
@@ -451,7 +451,6 @@ end, true)
ESX.RegisterCommand('info', { "user", "admin" }, function(xPlayer)
local job = xPlayer.getJob().name
local jobgrade = xPlayer.getJob().grade_name
print(('^2ID: ^5%s^0 | ^2Name: ^5%s^0 | ^2Group: ^5%s^0 | ^2Job: ^5%s^0'):format(xPlayer.source, xPlayer.getName(),
xPlayer.getGroup(), job))
end, true)