mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
tweak(esx_property): Remove Unused variables
This commit is contained in:
@@ -1038,11 +1038,11 @@ ESX.RegisterServerCallback('esx_property:CanCreateProperty', function(source, cb
|
||||
cb(Re)
|
||||
end)
|
||||
|
||||
ESX.RegisterServerCallback('esx_property:IsAdmin', function(source, cb, num)
|
||||
ESX.RegisterServerCallback('esx_property:IsAdmin', function(source, cb)
|
||||
cb(IsPlayerAdmin(source, "ViewProperties"))
|
||||
end)
|
||||
|
||||
ESX.RegisterServerCallback('esx_property:CanAccessRealEstateMenu', function(source, cb, num)
|
||||
ESX.RegisterServerCallback('esx_property:CanAccessRealEstateMenu', function(source, cb)
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
local Re = (Config.PlayerManagement.Enabled and xPlayer.job.name == Config.PlayerManagement.job and xPlayer.job.grade >= Config.PlayerManagement.Permissions.ManagePropertiesFromQuickActions) and true or false
|
||||
cb(Re)
|
||||
|
||||
Reference in New Issue
Block a user