Client

Animation

Animates current player for the specific duration

exports['g_core']:animation(dic, anim, time, ped)
  • dic? gta_dictionary_name

  • anim? gta_animation_name

  • time? number

    • number time to animate

    • -1 for unlimited

  • ped? (optional) entity

    • If left blank, cache.ped will be used instead


Animation Scene

Animates a preset scene using up to 2 peds

exports['g_core']:animationscene(scene, ped, ped2)
  • scene?

    • givemoney - passes money from ped to ped2

  • ped? entity

  • ped2? (optional) entity

    • If left blank, cache.ped will be used instead


Camera

Create a first person camera angle for the specified player

  • toggle?

    • true enables the camera

    • false returns player to normal camera

  • player? number (id)


Camera Coord

Create a first person camera angle at the specified coordinates

  • toggle?

    • true enables the camera

    • false returns to normal camera

  • coord? vector3(0,0,0)


Camera

Create a first person camera angle for the specified player

  • calltype?

    • 'drug'


Countdown

Starts a countdown for the specified amount of time

  • toggle?

    • true or false

  • time? interger (seconds)

  • event?

    • 'client:event:name'

    • false to disable if using server

  • server?

    • 'server:event:name'

    • leave blank to disable


Marker

Creates a bouncing arrow marker above the specified coordinate

  • toggle? boolean

    • true starts marker

    • false deletes active marker

  • coords? vector3(0,0,0)


Misson Text

Displays text on the screen using Goats UI

  • action?

    • show - displays ui

    • hide - hides ui

  • title? string

  • text? string

  • position? string

    • topRight

    • topLeft

    • bottomLeft

    • bottomRight

    • bottomCenter

    • topCenter


Notify

Sends a notification to the player using the notification system defined inside of config

  • title? string

  • style? string

    • FiveM

      • error

      • inform

      • sucess

      • warning

    • RedM - VORP

      • objective

      • update

      • tip

      • fail


Radius Coord

Finds a safe location to spawn an entity with-in the specified radius

  • coord? vector3(0,0,0)

  • zoneradius? number w/ 1 decimal (ex: 20.0)


Search Inventory

Returns the amount of the specified item

  • item? string


TextUI

Displays a prompt message using the system defined inside of config

  • title? string

  • icon? string (font awesome)


Hide TextUI

Hides any prompt message displaying using the system defined inside of config


Last updated