OnUserGroupAdded
OxideCarbonPermissionsCalled when a user is added to a permission group.
void OnUserGroupAdded(string playerId, string group)Parameters
- playerId
- string
- group
- string
Return value
voidThe return value is ignored — the hook only notifies.
Example
private void OnUserGroupAdded(string playerId, string group)
{
Puts("OnUserGroupAdded");
}Works in both Oxide and Carbon: Carbon loads Oxide plugins as is.
Injection point
Carbon
Oxide.Core.Libraries.Permission.AddUserGroup
Inside CarbonCarbon.Common
Sources: Rust.opj from OxideMod/Oxide.Rust (MIT) and hook metadata of the Carbon documentation (MIT). Method code is decompiled from this branch's server.