• Quick DERMA Questions.
    2 replies, posted
Aye Comrades, I have recently instead of begging for codes began to do them myself. I am still new to LUA, but I'll do my best to learn it. But, as I am new, I have no real idea for some stuff. I got the code and the logic, but still have some questions open. 1) I am making a DERMA Panel for a DarkRP Edit (Yes, I am Lazy, will do better when I get better and more time). So, I want every job to have access to that Panel when they join the server. Like, TEAM_TEST1 and TEAM_TEST2 got access. But TEAM_RECRUIT does not have access to the DERMA Panel. Always if you change to a job in the 'whitelist', the panel prompts. If you respawn, the panel prompts. As I often speak confusingly, I will make a TL;DR Version > When joining the DarkRP Server, a DERMA Panel prompts, always if you change jobs, the panel opens, you can't close it, only one TEAM has no permission to use/see it. 2) Can I assign multiple functions to a button? [CODE]Player:Give (test) Print ("You have become *CLASS*!")[/CODE] I really hope you can somehow help me out here, it is mainly important for me to know about TEAM restrictions and of course, that when you choose a job, the Panel prompts.
Does anyone else understand what he's trying to do? I don't mean to be disrespectful or anything... Correct me if I'm wrong but you want to create a panel on Player:Spawn(), but only giving access to that panel to certain teams? and for the second question: You can do what ever you want to a button. [lua] button.DoClick = function() --all the functions you could ever think of can go right here end [/lua]
[QUOTE=Richtofen;52360029]Does anyone else understand what he's trying to do? I don't mean to be disrespectful or anything... Correct me if I'm wrong but you want to create a panel on Player:Spawn(), but only giving access to that panel to certain teams? and for the second question: You can do what ever you want to a button. [lua] button.DoClick = function() --all the functions you could ever think of can go right here end [/lua][/QUOTE] No worries. With TEAMs I simply mean the DarkyRP Teams, so I can exclude a team.
Sorry, you need to Log In to post a reply to this thread.