@Command() | { command, usage?, schema? } | Registers a chat/console command handler with optional Zod validation. First param is always Player. | Details |
@OnNet() | eventName: string | Subscribes to a network event (client → server). First param is always Player. | Details |
@OnRPC() | eventName: string | Subscribes to an RPC call. Returns a value to the caller. | Details |
@OnTick() | — | Executes on every server tick. Use for lightweight, high-frequency logic. | Details |
@OnFrameworkEvent() | eventName: string | Listens to internal framework lifecycle events. | Details |
@OnLibraryEvent() | libraryName: string, eventName: string | Listens to server-side library domain events emitted through library.emit(...). | Details |
@OnRuntimeEvent() | eventName: string | Subscribes to native FiveM events (playerJoining, playerDropped, etc.). | Details |
@RequiresState() | state: string | Ensures the player has a specific state flag before execution. | Details |
@Throttle() | limit, windowMs | Rate-limits the method per player or context. | Details |
@Export() | exportName?: string | Exposes the method as a FiveM export for inter-resource APIs. | Details |
@Guard() | { permission?, rank? } | Applies access control before execution. | Details |
@Public() | — | Marks the method as explicitly public, bypassing guards. | Details |
@BinaryService() | serviceId: number | Registers a binary protocol service handler. | Details |
@BinaryCall() | callId: number | Registers a binary protocol call handler. | Details |
@BinaryEvent() | eventId: number | Registers a binary protocol event handler. | Details |