I know this is newbie i've asked others and they dont see the issue.
When I do /john ingame as a test for the if statements i dont the get message true or false. It bases the answer on checking my permission for "member". What am I doing wrong?Code:function PLUGIN:Init() print("JohnsTest Loaded") command.AddChatCommand( "john", self.Plugin, "cmdJohn" ) end function PLUGIN:cmdJohn(player, command, arg) if UserHasPermission(player, member) then rust.SendChatMessage(player, "<color=orange>★</color>", "True") else rust.SendChatMessage(player, "<color=orange>★</color>", "False") end end
Solved Checking for permission? (Lua)
Discussion in 'Rust Development' started by JohnRU, Aug 2, 2015.