- Messages
- 2,668
- Reaction score
- 4,298
- Points
- 845
Currently busy trying to get Atags, which i found on an old server backup, working on my server, it however, requires ulx evolve or serverguard which i wont be using, since the gamemode has a build in one suiting all my needs.
I still, however, want to give users tags and all that, i attempted to modify a bit of code with the almost 0% lua knowledge i have.
I modified the .lua (which checks if the user has a certain rank/permission in that rank in order to allow them acces too the script.) which now should check my steamid and if thats true, return true.
I've added the following bit to the script:
which in total gave me this:
Unfortunatly, when attempting to acces the script(which then checks if i have the required permission)
i get the following lua error, even when i attempt to do it multiple times.
sorry for the extreme noobness in lua, and hardcoding please press f for lua lessons
I still, however, want to give users tags and all that, i attempted to modify a bit of code with the almost 0% lua knowledge i have.
I modified the .lua (which checks if the user has a certain rank/permission in that rank in order to allow them acces too the script.) which now should check my steamid and if thats true, return true.
I've added the following bit to the script:
Code:
if player:SteamID() == "STEAM_0:0:70663366" then
return true
end
Code:
function ATAG:HasPermissions( ply )
if not IsValid( ply ) then return false end
if player:SteamID() == "STEAM_0:0:70663366" then
return true
end
if ULib then
if table.HasValue( ATAG.adminPanel_Access, ply:GetUserGroup() ) then
return true
end
if ply:query( "atags adminpanel" ) then
return true
end
end
if evolve then
if table.HasValue( ATAG.adminPanel_Access, ply:EV_GetRank() ) then
return true
end
if ply:SteamID() == "STEAM_0:0:70663366" then
return true
end
end
if serverguard then
if table.HasValue( ATAG.adminPanel_Access, ply:GetUserGroup() ) then
return true
end
if serverguard.player and serverguard.player:HasPermission( ply, "aTags Admin Panel" ) then
return true
end
return false
end
hook.Add( "Initialize", "aTags - Permissions - Initialize", function()
if serverguard and serverguard.permission then
serverguard.permission:Add( "aTags Admin Panel" )
end
end)
i get the following lua error, even when i attempt to do it multiple times.
sorry for the extreme noobness in lua, and hardcoding please press f for lua lessons