📖
Goat Scripts Doc
Discord
  • Home
  • G_CORE
    • Installation
      • QBCore
      • ESX
      • QBox
      • VORP
    • Developer
      • Events
        • Server
        • Client
      • Exports
        • Server
        • Client
      • Variables
  • G_LIFESTYLE
    • Installation
      • QBCore / ESX
      • QBox
    • Events
  • G_MONEYWASH
    • Installation
      • QBCore / ESX
      • QBox
  • G_SCRAPYARD
    • Installation
      • QBCore / ESX
      • QBox
    • Mini Games
  • G_SPEEDLIMITER
    • Installation
      • QBCore
      • QBox
  • G_USABLELIGHTS
    • Installation
      • QBCore / ESX
      • QBox
  • G_DOCKJOB - STDENIS
    • Installation
  • G_DEALER
    • Developer
      • Exports
        • Client
Powered by GitBook
On this page
  • Animation
  • Animation Scene
  • Camera
  • Camera Coord
  • Camera
  • Countdown
  • Marker
  • Misson Text
  • Notify
  • Radius Coord
  • Search Inventory
  • TextUI
  • Hide TextUI
  1. G_CORE
  2. Developer
  3. Exports

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

exports['g_core']:camera(toggle, 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

exports['g_core']:cameracoord(toggle, coords)
  • 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

exports['g_core']:dispatch(calltype)
  • calltype?

    • 'drug'


Countdown

Starts a countdown for the specified amount of time

exports['g_core']:countdown(toggle, time, event, server)
  • 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

ONLY CREATE ONE MARKER AT A TIME

exports['g_core']:marker(toggle, coords)
  • toggle? boolean

    • true starts marker

    • false deletes active marker

  • coords? vector3(0,0,0)


Misson Text

Displays text on the screen using Goats UI

YOU MUST HIDE IT ONCE IT IS DISPLAYED

exports['g_core']:missiontext(action, title, text, position)
  • 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

exports.g_core.notify(title, style)
  • 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

exports['g_core]:radiuscoord(coord, zoneradius)
  • coord? vector3(0,0,0)

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


Search Inventory

Returns the amount of the specified item

exports[g_core]:searchinv(item)
  • item? string


TextUI

Displays a prompt message using the system defined inside of config

exports['g_core']:textui(title, icon)
  • title? string

  • icon? string (font awesome)


Hide TextUI

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

exports['g_core']:textui()

PreviousServerNextVariables

Last updated 3 months ago