> For the complete documentation index, see [llms.txt](/llms.txt)

# GS2-Stamina Script Trigger Reference

Reference for event triggers that call extended scripts



## Trigger

### overflow

Stamina maximum value overflow

**Related methods:**
recoverStaminaByUserId - Recover Stamina by User ID


#### Synchronous Execution Script

The script is executed synchronously before the stamina maximum value overflow process.

##### Request

| | Type | Description |
| --- | --- | --- |
| namespace | [Namespace](../sdk/#namespace) | Namespace |
| staminaModel | [StaminaModel](../sdk/#staminamodel) | Stamina Model |
| stamina | [Stamina](../sdk/#stamina) | Stamina |
| overflowValue | long | Overflow value |


##### Implementation Example


**Lua**
```lua

-- Request
local namespace = args.namespace
local staminaModel = args.staminaModel
local stamina = args.stamina
local overflowValue = args.overflowValue

-- Business logic:

-- Result
result = {
}
```


---
  



