Hey, I have some issues with a Showid Script.
The Showid Script should work like this if you type "/showid" the chat should automatically do [Name] showed their ID card, which contains the name: [Name] and their job: [Job]
As example, let's take darkrp, a police officer asks you for your ID you should type "/showid" and let's say you're a bank robber as job and your name is Jake Robbinson.
Then it should display "Jake Robbinson showed their ID card, which contains the name: Jake Robbinson and their Job: Bank Robber.
I got that so far,
[LUA]local functions showid( ply, text, team )
if text == "/showid" then
return "/me shows their ID card, which contains the name: " .. ply:Nick() .. " and their job " .. ply:geDarkRPVar("job")
end
end
hook.add("Player Say", "showid", showid[/LUA]
I am pretty new to lua, so don't be so harsh to me ^^
Use [lua] or [CODE] tags in the future, makes code easier to read.
I assume the missing ')' at the end of the code is a copy/paste error, in which case, it should work. So make sure the code is actually running.
How did you name the file and where did you put it?
[QUOTE=JasonMan34;52117664]Use [lua] or [CODE] tags in the future, makes code easier to read.
I assume the missing ')' at the end of the code is a copy/paste error, in which case, it should work. So make sure the code is actually running.
How did you name the file and where did you put it?[/QUOTE]
I put it in autorun I guess and called in showid, I'm new in lua x)
and btw where is the ")" missing?
[QUOTE=Foxvox;52117674]
and btw where is the ")" missing?[/QUOTE]
At the very end
[QUOTE=JasonMan34;52117682]At the very end[/QUOTE]
Omg, I am SO FUCKING STUPID, thanks, it's working now!
Sorry, you need to Log In to post a reply to this thread.