mirror of
https://github.com/MalboroDEV/PermaProps.git
synced 2025-03-04 03:13:21 -05:00
ADD
This commit is contained in:
parent
2d9e24d624
commit
3243e333d9
@ -54,7 +54,15 @@ end
|
||||
|
||||
local function pp_open_menu( ply )
|
||||
|
||||
if !PermaProps.IsAdmin(ply) then return end
|
||||
if ULib and ULib.ucl then
|
||||
|
||||
if !ULib.ucl.query( ply, "permaprops_menu" ) then return end
|
||||
|
||||
else
|
||||
|
||||
if !PermaProps.IsAdmin(ply) then return end
|
||||
|
||||
end
|
||||
|
||||
local SendTable = {}
|
||||
local Data_PropsList = sql.Query( "SELECT * FROM permaprops WHERE map = ".. sql.SQLStr(game.GetMap()) .. ";" )
|
||||
|
@ -17,6 +17,7 @@ function PermaPropsULX()
|
||||
ULib.ucl.registerAccess( "permaprops_save", ULib.ACCESS_ADMIN, "Ability to save props", "PermaProps" )
|
||||
ULib.ucl.registerAccess( "permaprops_delete", ULib.ACCESS_ADMIN, "Ability to delete perma props", "PermaProps" )
|
||||
ULib.ucl.registerAccess( "permaprops_update", ULib.ACCESS_ADMIN, "Ability to update perma props", "PermaProps" )
|
||||
ULib.ucl.registerAccess( "permaprops_menu", ULib.ACCESS_ADMIN, "Ability to open the menu", "PermaProps" )
|
||||
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user