Custom meta table on a SENT

I am creating an entity where I would like certain functions such as SetMaterial and SetColor to have a custom behaviour.

I’d rather not detour the functions in the Entity metatable, and was wondering if there is a way to set it up so it behaves similarly to how creating functions in the Player metatable will take priority over the function of the same name in the Entity metatable on players.

Example:



FindMetaTable("Player").SetColor = function() end


This makes it so SetColor behaves differently if called on a player, but normally on all other entities, and it is something like this I am wondering if is possible to set up on a lua created entity.

This is not possible due to this: https://github.com/Facepunch/garrysmod-requests/issues/901

Alright, that’s what I needed to know, thank you.