No categories assigned

LUA:HasCoin

Revision as of 11:28, 19 June 2022 by Cynnar (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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.