Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PLUGIN.name = "Civil Clearance Level"
- PLUGIN.author = "Qemist"
- PLUGIN.desc = "Adds an apply option on CID cards that makes you say the name and digits associated with it."
- function PLUGIN:SchemaInitialized()
- local item = nut.item.Get("cid")
- if (!item) then return end
- item.functions = item.functions or {}
- item.functions.Apply = {
- text = "Apply",
- icon = "icon16/user_comment.png",
- run = function(itemTable, client, data, entity, index)
- client:ConCommand("say "..(data.Name or "no one")..", "..(data.Digits or "00000"))
- timer.Simple(0.5,
- function()
- client:ConCommand("say /recognize")
- end)
- return false
- end
- }
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement