# Server Voting

The **Server Voting Script** for FiveM is the one-stop solution for managing votes via in game, this script works seamlessly with OxLib menus and uses Ace Permissions!

***

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FG7Ppyqch4zt8DljqHQgy%2Fimage.png?alt=media&#x26;token=8f310974-d6cb-4b38-9f82-09a8efba2c27" alt=""><figcaption></figcaption></figure>

1. [VeniceNotify](https://forum.cfx.re/t/codem-advancednotifysystem/4812202)
2. [OkOkNotify](https://forum.cfx.re/t/okoknotify-standalone-paid/3907758)
3. [Ox\_lib](https://github.com/overextended/ox_lib)
4. Chat
5. GTA

***

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FcjHtQH2wOzZHLKnlKate%2FPreview.png?alt=media&#x26;token=5ffabc92-3a40-471e-9e58-daa4e56f7c4b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://media.discordapp.net/attachments/1225968338191122513/1331254271701946368/image.png?ex=67a561e7&#x26;is=67a41067&#x26;hm=b5185c2d7162eba63e82f41c9276d8ad2e2eb3bb783b9954560f988c943e6f27&#x26;=" alt=""><figcaption><p>In Game Preview.</p></figcaption></figure>

<div align="center"><figure><img src="https://media.discordapp.net/attachments/1225968338191122513/1331732201938620433/image.png?ex=67a5cd83&#x26;is=67a47c03&#x26;hm=a86fba930a4e94c5c2de1d0e9dcbe361129f2ae10730c609310e4abb2b73bd34&#x26;=" alt=""><figcaption><p>If the user does not have permission to start a vote.</p></figcaption></figure></div>

<div align="center" data-full-width="false"><figure><img src="https://media.discordapp.net/attachments/1225968338191122513/1331254287711604799/image.png?ex=67a561eb&#x26;is=67a4106b&#x26;hm=2d282741e28c2f08b2cd12d8cfa66f9bbcf3e586b8d5ac33c5a3f58bbb8da6cf&#x26;=" alt=""><figcaption><p>Chat Message for the vote announcement.</p></figcaption></figure></div>

<figure><img src="https://media.discordapp.net/attachments/1225968338191122513/1331254303511416894/image.png?ex=67a561ef&#x26;is=67a4106f&#x26;hm=78ec37c77f0462075cec3072efc29c28cbb34a80c0d410f28a076a4f998fdbf3&#x26;=" alt=""><figcaption><p>Notification letting people now the command.</p></figcaption></figure>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FUTCOt67QdRE3zgGXSNPL%2Fimage.png?alt=media&#x26;token=852d2896-7b6e-4e35-8a7b-7d3a13dcbde8" alt=""><figcaption><p>"/vote" menu with all options from the vote.</p></figcaption></figure>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2F70QiQ98stRoike9RWzi9%2Fimage.png?alt=media&#x26;token=042ca9ee-10d7-4b56-a403-c7affbe9d4ab" alt=""><figcaption><p>letting the user know their vote has been recorded.</p></figcaption></figure>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2Feo5F2pIcoKRX5jyYzjRt%2Fimage.png?alt=media&#x26;token=0cb31fcd-eeee-427f-bc45-2753496eda74" alt=""><figcaption><p>when the vote ends.</p></figcaption></figure>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FiUJqAtV04aXWG9TKBWwB%2Fimage.png?alt=media&#x26;token=8270f487-587e-4f44-8662-df0f2eb4e5d3" alt=""><figcaption><p>If there is no vote active and a user runs "/vote"</p></figcaption></figure>

<figure><img src="https://1417723968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRh5ewdSY4npjj2afCrn%2Fuploads%2FYrtwkF7ThHhtSyK60xDE%2Fimage.png?alt=media&#x26;token=d9fdbfe9-4c62-4751-9d79-ac377a9c5ed4" alt=""><figcaption><p>If a user attempts to start 2 votes at once.</p></figcaption></figure>

***

```lua
Config = {}

-- Notification Settings
Config.NotifyType = 'Ox_lib'
Config.notifyTime = 5000 -- Notification display time in milliseconds

-- Permission Settings
Config.ACEPermission = 'ad.servervoting' -- ACE permission for starting a vote

return Config
```

{% hint style="success" %}
Downloads

\[FREE] [Free Version](https://arcticdevelopment.tebex.io/package/6646746)

\[PAID] [Open Source Version](https://arcticdevelopment.tebex.io/package/6646744)
{% endhint %}
