Kinetix AI Emote Creator for FiveM - Documentation
GitHubDiscord
  • ๐Ÿ–๏ธIntroduction
  • ๐Ÿ‘€Overview
  • ๐Ÿš€Get started
  • ๐Ÿ‘จโ€๐Ÿ’ปDeveloper Portal
    • Game/App Space - Creation
    • Game/App Space - Settings
  • โš™๏ธCore
    • User Creation
    • Emote generation
    • Webhook
    • User bag
    • Sharing emote
    • Validation / Retake process
    • Paywalls
    • File download
    • Playing animations
  • ๐Ÿ–ฅ๏ธInterface
    • Events
      • Server
      • Client
    • Render functions
      • CreateRootMenu()
      • CreateQRCodeAlert(url)
      • CreateMainMenu()
      • CreateEmoteBagMenu(emotes)
      • OpenEmoteBagMenu()
      • CreateProcessValidationMenu(process)
      • CreateEmoteCreatorMenu(processes)
      • CreateErrorMenu(statusCode, error)
      • NotifyProcessUpdate(process)
      • NotifyEmoteReady(data)
      • CreateEmoteWheel(emotes)
  • ๐Ÿ”ŒIntegrations
  • ๐ŸงชLive Demo
  • ๐Ÿ“šVideo recording Guidelines & AI Specs
    • AI Emote Creator - specifications
    • Video recording guidelines
Powered by GitBook
On this page
  1. Core

Emote generation

PreviousUser CreationNextWebhook

Last updated 9 months ago

In order to create an emote the following flow must happen:

First, a user must have been created, follow the if it's not already done.

You will have to create a generation token with the following route.

You can list the processes of a user with the following route :

The emote creation process will evolve through these different states :

  • Pending: When the process is queued to be processed by our GPU cluster

  • Processing: When the ML algorithm is running on the video

  • Done: When the inference was successful

  • Failed:

    • An unknown error happens when the algorithm failed due to an unhandled error

    • A known error code will be returned if the video input is not processable

      • Too many people

      • No human detected on screen

      • The detected actor is too small

You are also able to filter the processes by their creation date, allowing you for example to only display the processes recently created.

In order to fetch the content of a successful process, you need to call the emote route with the 'emote' uuid of the process object:

With this route you are able to get the asset's metadata and all the associated files, including the YCD file through a signed download link.

In our FiveM implementation, we download the output file and let the Cfx Server handle the Client - Server streaming. This way, even if the API was down, you would still be able to play existing emotes in game.

You can generate a QR code with the 'url' field in order to redirect to the PWA. The PWA will use the token and run the process on it's own. The token can only be used once, and has a 5 minutes TTL in order to prevent abuses. You have the ability to provide arbitrary metadata that will be attached to the process and then the emote. This could be used for example to implement customizable emotes with GTA's animation flags. As the server owner, you are responsible for the token generation. Generation processes will cost money and you have to design your system in a way that .

Validated & Rejected: Optional user validation step that is .

When the YCD File generation setting is enabled, an extra status called 'gta_done' will be present in the .

โš™๏ธ
ensure you can generate revenue
detailed here
webhook
user creation guide
Process statuses