RevokePlayerSpell: Difference between revisions

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search
Automatyczna aktualizacja dokumentacji funkcji
 
Complete Lua function catalog
 
Line 29: Line 29:
* Available only in server-side resource scripts.
* Available only in server-side resource scripts.


[[Category:Lua Functions]]
[[Category:Server Functions]]
[[Category:Server Functions]]
[[Category:Magic Functions]]
[[Category:Magic Functions]]
[[Category:Progression Functions]]
[[Category:Progression Functions]]

Latest revision as of 09:54, 15 August 2026

revokePlayerSpell

Revokes an authoritative spell grant from a player.

Syntax

bool revokePlayerSpell(int playerId, int|string spell)

Parameters

Name Type Required Description
playerId int yes The connected player to update.
spell string yes A spell id or stable key.

Returns

Returns true when the spell is revoked; otherwise returns false.

Examples

Remove Fire Arrow from a player:

revokePlayerSpell(playerId, SPELL.FIRE_ARROW)

Notes

  • Available only in server-side resource scripts.