No categories assigned

LUA:HasCoin


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.