You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MrDiamondDog edited this page Jun 26, 2022
·
6 revisions
Biometric Reader
Sends an event when used by a player, the default event name is bioReader and contains the UUID of the player which used the reader.
Example
event=require("event") -- require eventreader=require("component").os_biometric-- require the biometric readerfunctiononRead(address, reader_uuid, player_uuid) -- function to call once the reader is used.print(player_uuid.." entered!") -- print the UUID of the player that was scanned.endevent.listen("bioReader", onRead) -- listen to the bioReader event
Methods
setEventName(String:name) -- changes the event name to the given argument