For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

TGIANN Phone Accessories

Phone emotes in cdev_emotemenu can use the phone the player customized in tgiann-phone-accessories (case, color and pins) instead of the generic phone prop.

Requirements

Install and configure tgiann-phone-accessories with its own dependencies, using the TGIANN documentation:

  • oxmysql

  • ox_lib

  • tgiann-core

  • tgiann-phone-accessories-assets

  • tgiann-phone-accessories

Import the SQL file that ships with tgiann-phone-accessories (sql_main.sql) into your server database. Without those tables the accessories resource cannot load the player's phone.

Installation

  1. Update cdev_emotemenu to 1.7.0 or newer.

  2. Install tgiann-phone-accessories and its dependencies.

  3. Import sql_main.sql.

  4. Start the resources in server.cfg. tgiann-phone-accessories must be started before a player uses a phone emote. It does not have to start before cdev_emotemenu.

  1. Restart the server. Do not add a config block to public/shared/Config.lua.

The check runs when the emote plays, with GetResourceState("tgiann-phone-accessories") == "started". Starting or stopping the accessories resource does not require an edit in the emote menu.

What the player sees

On a phone emote, the first prop whose model name contains phone or cellphone is replaced by the player's decorated phone. The emote still uses that animation's bone and offsets, so the phone stays in the same hand position.

Canceling the emote (default X) removes that phone.

Other players see the decorated phone, because tgiann-phone-accessories creates it as a networked entity.

Last updated