Difference between revisions of "LUA:HasCoin"
(Created page with "{{LUAFunction |Name = HasCoin |Description = Checks if player has coin |Param1 = Spawn |Param1Desc = is the spawn we want to check. |Param2 = int32 |Param2Desc = is the amount...") |
(No difference)
|
Latest revision as of 11:28, 19 June 2022
LUA:AllFunctions - HasCoin
Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker
Checks if player has coin
Syntax
HasCoin(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (int32)
- param1 is the spawn we want to check.
- param2 is the amount we want to check for.
Example
function hailed(NPC, Player) HasCoin(Player, 1000000) end
An NPC with this script will check if the player has 100 Plat
Notes
Will return 1 if true and 0 if false.