Table of Contents

Interface IClassEventHandler

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

Provides the events for GetEventDispatcher().

[OpenMpEventHandler]
public interface IClassEventHandler : IEventHandler<IClassEventHandler>
Inherited Members

Methods

OnPlayerRequestClass(IPlayer, uint)

Called when a player requests to spawn with a class.

bool OnPlayerRequestClass(IPlayer player, uint classId)

Parameters

player IPlayer

The player who requested the class.

classId uint

The ID of the class being requested.

Returns

bool

true to allow the class selection; otherwise, false to deny it.