📖
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
  • Give Item
  • Give Money
  • Police Count
  • Remove Item
  • Remove Money
  • Webhook
  1. G_CORE
  2. Developer
  3. Events

Client

Give Item

Gives the specified player the specified item and amount

TriggerServerEvent('g_core:server:additem', source, item, amount)
  • source? number

  • item? string

  • amount? number


Give Money

Gives the specified player the specified amount of money into the specified account

TriggerServerEvent('g_lib:server:addmoney', source, account, amount, event)
  • source? number

  • account?

    • cash

    • bank

    • custom_account

  • amount? number

  • event? client_event_name


Police Count

Refreshes the gcore.police variable with all players on duty for all police job(s) set within the config.

Returns data to the client side

TriggerServerEvent('g_core:server:policecount')

Remove Item

Removes the specified item and amount from the specified player

TriggerServerEvent('g_core:server:additem', source, item, amount)
  • source? number

  • item? string

  • amount? number


Remove Money

Removes the specified amount of money from the specified account and player

TriggerServerEvent('g_lib:server:addmoney', source, account, amount, event)
  • source? number

  • account?

    • cash

    • bank

    • custom_account

  • amount? number

  • event? client_event_name


Webhook

Sends a webhook to the specified discord channel

local serverid = GetPlayerServerId(PlayerId())
TriggerServerEvent('g_core:sv:webhook', title, message, serverid, webhookid)
  • title? string

  • message? string

  • serverid? number (player id)

  • webhookid? discord_webhook_url


PreviousServerNextExports

Last updated 3 months ago