SetPlayerStrength
setPlayerStrength
Sets a player's authoritative strength value.
Syntax
bool setPlayerStrength(int playerId, number value)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
playerId |
int |
yes | The connected player to update. |
value |
number |
yes | The new strength value. |
Returns
Returns true when the value is accepted; otherwise returns false.
Examples
Set a player's strength:
setPlayerStrength(playerId, 50)
Notes
- Available only in server-side resource scripts.
- This is a convenience wrapper around
setPlayerStat(playerId, "strength", value).