Context Menu handling.


PropertyFilter(filter, ent)

View source »

Determine if a property is allowed to be ran on an given entity. Passing a string or table as the filter will check the entities class against the filter. Passing a function will call the function with the entity as the only argument, and use it's boolean return value. If no filter is passed, then this will return true.


  • filter string, table, function or nil

    Filter to run against.

  • ent Entity

    Entity to run against.


  • bool

    If the property is allowed.