Description
This is the component provided by the RFID Reader block.
Component name: os_rfidreader
.
This is the component provided by the RFID Reader block.
Component name: os_rfidreader
.
scan([range:number]):table
Scans for all entites for RFIDs within range default is 16 blocks
rfidData(address:string, uuid:string, playerName:string, distance:number, data:string)
This signal is queued by the RFID reader when a method of os_rfidreader called by a computer foreach card found.
address
is the address of the reader
uuid
is the uuid of the card
playerName
is the name of the player who have the card
distance
is the distance of the player who have the card
data
is the data stored in the card
-- https://github.com/PC-Logix/OpenSecurity/wiki/RFID_reader
output = component.os_rfidReader.scan(10)
for k, v in pairs(output[1]) do
print(k, v)
end