Component : Magnetic Card Reader

logo

Description

This is the component provided by the Magnetic Card Reader block.

Component name: os_magreader.

Methods

Events

Example

            
-- https://github.com/PC-Logix/OpenSecurity/wiki/BiometricReader
event = require("event") -- require event
reader = require("component").os_biometric -- require the biometric reader

function onRead(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.
end

event.listen("bioReader", onRead) -- listen to the bioReader event