🎩OpenAi FiveM Assistant

A lua rest api for FiveM .

Add ChatGPT 4.0 Turbo in your server FiveM Chat

 _______  _______ _________
(  ___  )(  ____ )\__   __/
| (   ) || (    )|   ) (   
| (___) || (____)|   | |   
|  ___  ||  _____)   | |   
| (   ) || (         | |   
| )   ( || )      ___) (___
|/     \||/       \_______/
OpenAi GPT

How To Use

Copy the folder inside the resouce folder of your server, start the script inside server.cfg

To get the Api key go to your account on https://beta.openai.com/account/api-keysarrow-up-right and copy the key.

In this example i've used Davinci gpt 3.5 Turbo model, you can change the model and use what you need.

Change the value with your OpenAi Api key inside the config

Add Response to Chat

To get response text, you can use:

Commands

Use /chatgpt "custom prompt" inside fivem

You can change the command inside the server.lua

OpenAI

circle-info

Please read the official OpenAi API Documentation: https://beta.openai.com/docsarrow-up-right if you need more info !

The OpenAI API can be applied to virtually any task that involves understanding or generating natural language or code.

Support

If you need more help join our Discord Community and open a ticket:

✨Supportchevron-right

License MIT

IT'S MANDATORY TO GIVE CREDITS IF YOU REUSE THE CODE!

DO NOT CHANGE CREDITS INSIDE THE CODE.

triangle-exclamation

Last updated