1. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

Disable Context Menu Options for non Admins

Discussion in 'DarkRP Modding Questions & Help' started by Alphaverse, Jun 16, 2017.

  1. Alphaverse

    Alphaverse Member

    Hey guys!

    How can I disable the "Ignite", "Remove", "Keep Upright",... in the "C - Menu" for players who are'nt Admin?

    They should be able to open the C menu but can't use these buttons.

    I'm using ServerGuard by the way.

    Thank you for any help!

    Your Alphaverse
  2. Code (Text):
    hook.Add( "CanProperty", "block_collision_property", function( ply, property, ent )
        if ( !ply:IsAdmin() && property == "remover" ) then return false end
    end )
    and where "remover" is just keep that, and copy paste it again in the same file with the name of the thing (ignite/etc), but make sure its the file name for the thing, such as "remover" is remove, but not "remove"
    Alphaverse likes this.

Share This Page