So my friend and I are trying to make a Theater Job for our DarkRP server, We are trying to make the Job be able to Navigate and add videos as they please without being an admin but everytime we try putting a vid while being user as the Theater Job , nothing pops up on the screen nor PlayX and it doesn't say anything in console. Any help would be nice.
function PlayX.AccessManager(ply)
-- Default is Deny
local result = false
-- Check if ULib is loaded
if ULib ~= nil then
result = ply:query("PlayX Access")
end
-- Check if exsto is loaded
if exsto ~= nil then
result = ply:IsAllowed("playxaccess")
end
-- Check if Evolve is Loaded
if evolve ~= nil then
result = ply:EV_HasPrivilege( "PlayX Access" )
end
if LocalPlayer():team() == "TEAM_THEATER" then
result = ply:IsAdmin()
end
return result
end
Hold on substitutes)
if ply: Team () == TEAM_THEATER then
result = true
end
Thank you so much dude
Sorry, you need to Log In to post a reply to this thread.