https://files.facepunch.com/forum/upload/1792/b5217d8f-250a-4422-b8e3-caea7dbd8beb/image.png
https://files.facepunch.com/forum/upload/1792/091c9531-1ab9-4eaf-8e6c-a388b7f818ea/image.png
Hey, according to dark rp wiki, the third return value is message, I'm trying to not display the message, is there any way? I've already tried false and "", but it doesnt work. The thing I'm trying to do, is to show gui used to sign up for mayor instead of creating native vote, but it does create notification which I don't want to be created.
I don't believe there's a default way to do that. You could detour CreateVote and add that functionality within the canStartVote hook call, or you could detour the _Notify usermessage and don't display any notifications where the text is something such as "#ignore#".
I don't think I can override this function as it's local, also I don't want to edit any of darkRP gamemode files
Actually I can't do this.. If I'm trying to override DarkRP.CreateVote(), then copy in the default function, it doesn't work, cuz I'm missing Vote = {} table, which is local on sv_votes.lua, anyone have other ideas?
https://files.facepunch.com/forum/upload/1792/636c420e-e40f-4deb-a097-72405c885293/image.png
I'm trying to override it and run simple test, but nothing changes :/
Is that code running on the client or the server? You would detour it on the client.
Oh, I'm just fucking dumb, thanks bro, I'll try on client
Happy new year
Sorry, you need to Log In to post a reply to this thread.