• Starting a vote for a job through an entity?
    4 replies, posted
So I created a simple entity that opens a derma panel when you use it. When you click the yes button I want it to start a vote like how the f4 menu works. I'm confused on how I would get that to work.
Just use Player/ConCommand on the player and run the mayor console command.
Maybe try creation two local variables. local voteYes = 0 local voteNo = 0 then create a yes button and a no button, once the buttons get clicked it adds 1 onto the local variable chosen. You could probs do an if statement after that and switch the team if the yes votes are higher than the no votes.
DarkRP/cl_jobstab.lua at fd95cf68e6a01a1b0522c4a989d4512fc0fb202..
I didn't realize it was that simple. Thanks!
Sorry, you need to Log In to post a reply to this thread.