-
Notifications
You must be signed in to change notification settings - Fork 24
BiometricReader
MrDiamondDog edited this page Jun 26, 2022
·
6 revisions
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.
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
setEventName(String:name) -- changes the event name to the given argument
- Alarm
- Biometric Reader
- Card Writer
- Data Block
- Door Controller
- Energy Turret
- Entity Detector
- Keypad
- Magnetic Card Reader
- NanoFog Terminal
- RFID Reader
- Rolldoor
- Rolldoor Controller
- Security Terminal
- Security Doors