TGIANN
YoutubeDiscordTebexFivem
  • Main
    • Welcome
    • How to Find My Transaction ID
    • How can i download my script
    • How can i transfer my script
    • Whats escrow system?
    • Switching from MySQL Async to oxmysql
    • Basic Aces & Principals overview/guide
    • Using QB scripts in QBOX
    • How can i use Fivemanage
  • Common errors
    • SCRIPT ERROR: ?:-1: attempt to call a nil value
    • TGIANN-Core script is not in my keymaster account
    • You lack the required entitlement to use tgiann-*
    • Error parsing script / Failed to load script
    • Error: syntax error near '<\1>'
    • When I buy something, the money goes negative
    • Failed to verify protected resource
  • Map
    • lumi-delperropier
      • Setup
      • Conflicts
      • Disable NPC
      • Rcore Funfair Cords
      • CS-Hall Config
  • Scripts
    • tgiann-animpos-photo-cam
      • Editable Files
      • Config File
      • Exports
    • tgiann-self-storage-v2
      • Editable Files
        • Language File
        • Client Editable
        • Server Editable
      • Config File
    • tgiann-radio
      • Guides
        • Recommended settings for PMA Voice
        • How to change the animation
      • Installation
      • Config file
      • Editable Files
        • Language File
        • Client Editable
        • Server Editable
      • Exports
    • tgiann-core
      • Config file
      • Exports
      • Integration
        • QB
          • DrawText
    • tgiann-lumihud
      • Events / Exports
      • Editable Files
        • Language File
        • Client
          • playerStatus.lua
          • qbclient.lua
          • editable.lua
          • moneyEditable.lua
          • harnessBeltEditable.lua
        • Server
          • qbserver.lua
          • editable.lua
      • Config Files
        • config.lua
        • configHudSettings
        • configWeaponList.lua
        • qbStressConfig
      • Integration
        • Notify
        • Progressbar
    • tgiann-realparking
      • Events / Exports
      • Editable Files
        • Language File
        • Client
          • editable.lua
        • Server
          • editable.lua
      • Config Files
        • blipsConfig.lua
        • config.lua
        • impoundConfig.lua
        • insuranceConfig.lua
    • tgiann-vehicleshop
      • Exports
      • Editable Files
        • Language File
        • Client
          • editable.lua
        • Server
          • editable.lua
          • commands.lua
      • Config Files
    • tgiann-gps
      • Client Exports
      • Editable Files
        • config.lua
        • client/editable.lua
        • Language File
    • tgiann-clothing
      • Guides
        • Installation
          • ESX
          • QB
          • QBX
          • tgiann-inventory clothe items
        • Migration
        • How to take clothes images
      • Comman Proplems
      • Events / Exports
      • Admin Commands
      • Editable Files
        • client/editable.lua
        • server/editable.lua
      • Configs
        • blacklist
          • famale.lua
          • male.lua
        • clotheList
          • global
            • female.lua
            • male.lua
        • clothingPrice
          • female.lua
          • male.lua
        • tattoo
          • customTattoo.lua
          • tattoo.lua
        • clothingRoomsOutfits.lua
        • config.lua
        • hairOverlays.lua
        • pedList.lua
    • tgiann-inventory
      • Guides
        • Installation
          • ESX
          • QB
          • QBOX
        • How to adapt your script
        • How do money as item
          • QB
          • QBOX
          • ESX
            • ESX V11
            • ESX V12
        • Creating Items
        • Item İmages
        • Item Metadata
        • Migration
      • Common Problems
      • Exports
        • Server
        • Client
      • Hooks
      • Events
        • Server
        • Client
      • Admin Commands
      • Editable Files
        • client/editable.lua
        • client/topheader.lua
        • server/editable.lua
        • server/commands.lua
        • server/convert.lua
      • Configs
        • config.lua
        • configAmmo.lua
        • configAntiSwimingItems
        • configAttachment.lua
        • configAttachmentName.lua
        • configBlockItems.lua
        • configCarryItems.lua
        • configClotheBackpack.lua
        • configCommands.lua
        • configCraft.lua
        • configDecayableItems.lua
        • configDrop.lua
        • configEditableItems.lua
        • configFilter.lua
        • configItemStash.lua
        • configMaxStack.lua
        • configMaxUseAmount.lua
        • configMetadata.lua
        • configMetadataAdvance.js
        • configRealisticArmor.lua
        • configShop.lua
        • configStashes.lua
        • configThrowableItems.lua
        • configVendingMachine.lua
        • configWeapon.lua
    • lumi-delperropier-texonstone
      • Setup
    • tgiann-antirpf
      • Editable files
    • tgiann-secondhand
      • Editable files
      • config.lua
    • tgiann-multicharacter + spawn selector
      • Guides
        • Installation
        • Discord Permmission integration
        • Tebex integration
      • Common Problems
      • Configs
        • config.lua
        • multicharConfig.lua
        • photocamConfig.lua
        • spawnSelectorConfig.lua
      • Editable Files
        • Language File
        • client/editable.lua
        • server/editable.lua
        • server/commands.lua
    • tgiann-attachment
      • Config file
      • Event List
    • tgiann-bank
      • Migration
      • Exports
      • Config files
        • config.lua
        • configGangAccounts.lua
        • configHacking.lua
        • configJob.lua
        • configJobAccounts.lua
      • Editable Files
    • tgiann-bettercombat
      • Config file
      • Event List
    • tgiann-bobcat
      • Config file
    • tgiann-boombox
      • Config file
    • tgiann-vehiclecontrol
      • Exports
      • Config file
      • Editable Files
    • tgiann-card
      • Config file
      • QB Core Item
      • Ox Inventory Item
      • Sql File
    • tgiann-carhud
      • Config file
    • tgiann-carmod
      • Config file
      • Sql File
    • tgiann-chair
      • Config file
      • QB Core Item
    • tgiann-chopshop
      • Config file
      • QB Core Item
    • tgiann-damage-indicator
      • Config file
      • Editable files
    • tgiann-dna
      • Sql File
    • tgiann-document
      • Config file
      • QB Core Item
      • Ox Inventory Item
      • Sql File
    • tgiann-doorlock-v2
      • How can i find door model and other details
      • Config file
    • tgiann-dropweaponwhendie
      • Config file
    • tgiann-drugsell
      • Config file
    • tgiann-erpv2
      • Config file
    • tgiann-fallouthacker
      • Usage
    • tgiann-garage
      • Config file
      • Event List
      • Exports List
      • QB Sql File
      • ESX Sql File
    • tgiann-hotwire
      • Item List
      • Editable Files
        • Language File
        • Client/editable.lua
        • Client/migrate.lua
        • Server/commands.lua
      • Config file
      • Exports
    • tgiann-house
      • Stash Function
      • Common errors
      • Config file
      • Event List
      • Sql File
      • Editable Files
    • tgiann-hud
      • Config file
    • tgiann-hudv2
      • Config file
      • Event List
    • tgiann-job
      • Config file
      • Sql File
    • tgiann-market
      • Editable Files
      • Config file
      • Sql File
    • tgiann-mdt
      • Config file
      • ESX Sql File
      • QB Sql File
    • tgiann-megaphone
      • Setup
        • QB Core Item
        • Ox Inventory Item
      • Language File
      • Config file
      • Event List
      • Exports List
      • Recommended PMA Voice Settings
      • Common Problems
    • tgiann-moder-hud
      • Config file
      • Editable files
      • Event list
    • tgiann-naked
      • Config file
      • Editable Files
      • Sql File
      • Wrong Clothes
    • tgiann-platechanger
      • Config file
    • tgiann-policealert
      • Config file
      • Event List
    • tgiann-postcard
      • Editable Files
      • Config file
      • QB Core Item
      • Ox Inventory Item
    • tgiann-radio (Old)
      • Common errors
      • Config file
      • Event List
      • Exports List
      • Recommended settings for PMA Voice
    • tgiann-rentscooter
      • Config file
    • tgiann-sblauncher
      • Config file
      • QB Core Item
    • tgiann-self-storage
      • Config file
      • Editable files
      • Sql File
    • tgiann-exit-log
      • Config file
      • Editable files
    • tgiann-weapons-on-back
      • Config file
      • Editable files
    • tgiann-sellnpc
      • Config file
    • tgiann-smokegrenade
      • Config file
    • tgiann-sounds
      • Example Usage
    • tgiann-stashhouse
      • Config file
      • Sql File
    • tgiann-statushud
    • tgiann-vehicleoutfit
      • Config file
      • Sql File
    • tgiann-vehicleradio
      • Config file
      • Event list
    • tgiann-vehicleshop
      • Config file
      • Sql File
    • tgiann-trade
      • Config file
      • Server editable.lua
      • Client editable.lua
    • tgiann-zombie
      • Config file
      • Client editable.lua
      • Server editable.lua
      • Common errors
    • tgiann-planting
      • Config file
      • Editable Files
    • tgiann-realistic-car-crash
      • Config file
      • Editable Files
    • tgiann-graphic-menu
      • Config file
      • Editable Files
    • tgiann-firefighterjob
      • Installation
      • Config file
      • Editable Files
    • tgiann-coinshop
      • Config file
      • Editable Files
    • tgiann-vehiclepaint
      • Config file
      • Setup
    • tgiann-drone
      • Config file
      • Editable Files
    • tgiann-musical-chairs
      • Config file
      • Editable Files
    • tgiann-pursuitmode
      • Config file
      • Editable Files
    • tgiann-food-jobs
      • Config file
      • Editable Files
      • Example Location Config
Powered by GitBook
On this page
  • Notif
  • Progress
  • /hud Menu
  • UI Open/Close
  • AddStatusHud
  • UpdateStatusValue
  • RemoveStatusHud
  • GetTotalKm
  • Seatbelt
  1. Scripts
  2. tgiann-lumihud

Events / Exports

All events and exports are for client

Notif

exports["tgiann-lumihud"]:Notif(text, texttype, time)
Name
Type
Description

text

string

Notif message

texttype

string

primary | error | success

time

int

Notif time

example

exports["tgiann-lumihud"]:Notif("Test Message 1", "primary", 2500)
exports["tgiann-lumihud"]:Notif("Test Message 2", "error", 3500)
exports["tgiann-lumihud"]:Notif("Test Message 3", "success", 4500)

Progress

You can use it with either cb or return

local actions = {
    name = "p_1", -- String > Uniq Name
    duration = 2500, -- Int > Duration Time
    label = "Eating...", -- String > Text to display on the progress bar
    useWhileDead = useWhileDead, -- Boolen | null > Can be used while dead
    canCancel = canCancel, -- Boolen | null > The player can cancel it
    controlDisables = { -- Table
        car = false, -- Boolen | null > Blocks everything related to vehicles
        move = false, -- Boolen | null > Prevents the character from moving
        combat = true, -- Boolen | null > Prevents punching, aiming, shooting, etc.
        mouse = false, -- Boolen | null > Prevents mouse movement, disabling camera rotation
        disableRun = true, -- Boolen | null > The player can only walk, but cannot run
    },
    animation = { -- Table > Play animation
        animDict = "veh@van@ds@base", -- String | null > Animation Dictionary
        anim = "hotwire", -- String | null > Animation name 
        flags = "16", -- String | null > Animation flag
    },
    prop = { -- Table > Attach prop 1 to entity
        model = "tablet_01" -- String | number | null > Prop model or hash,  
        bone = 2108, -- Int | null > Bone ID
        coords = { x = 0.0, y = 0.0, z = 0.0 }, -- Table | null > Axis offset from the center of the entity  
        rotation = { x = 0.0, y = 0.0, z = 0.0 }, -- Table | null > Axis rotation  
    },
    propTwo = { -- Table > Attach prop 1 to entity
        model = "tablet_01" -- String | number | null > Prop model or hash,  
        bone = 2108, -- Int | null > Bone ID
        coords = { x = 0.0, y = 0.0, z = 0.0 }, -- Table | null > Axis offset from the center of the entity  
        rotation = { x = 0.0, y = 0.0, z = 0.0 }, -- Table | null > Axis rotation  
    }
}

-- CB Method
exports["tgiann-lumihud"]:Progress(actions, function(canceled)
    print(canceled)
end)

-- Return Method
local success = exports["tgiann-lumihud"]:Progress(actions)

/hud Menu

Opens the buff that opens with the /hud command

TriggerEvent("tgiann-lumihud:hudMenu")

UI Open/Close

Turns ui on and off.

TriggerEvent("tgiann-lumihud:ui", open)

Parameters :

Name
Type
Description

open

boolen

turns hud on if true and off if false


AddStatusHud

Adds extra hud like food, thirst, health

If you trigger this event while hud is added, it will update hud

exports["tgiann-lumihud"]:AddStatusHud(hudName, isBig, iconName, color, value, data)

Parameters :

Name
Type
Description

hudName

string

Uniq name

isBig

boolen

if true, the indicator will be large like the health or armor indicator

iconName

string

Icon name: tgiann-lumihud/ui/assets

color

string

Hex or RGB color code

value

number or int

The value in the hud indicator. In percentage

data

table

Location and button settings

Example

exports["tgiann-lumihud"]:AddStatusHud("testHud", true, "phone", "red", 15, {
    normal = {
        style = { left = "58vh", bottom = "2vh" },
        buttons = {
            move = true,
            color = true,
            scale = true,
            customButtons = true,
        },
    },
    car = {
        style = { left = "75vh", bottom = "2.9vh" },
        buttons = {
            move = true,
            color = true,
            scale = true,
            customButtons = true,
        },
    }
})

UpdateStatusValue

Updates the percentage of a previously added hud

exports["tgiann-lumihud"]:UpdateStatusValue(hudName, value)

Parameters :

Name
Type
Description

hudName

string

Uniq name

value

number or int

The value in the hud indicator. In percentage of the hud indicator

Example

exports["tgiann-lumihud"]:UpdateStatusValue("testHud", 25)

RemoveStatusHud

Removes the previously added hud

exports["tgiann-lumihud"]:RemoveStatusHud(hudName)

Parameters :

Name
Type
Description

hudName

string

Uniq name

Example

exports["tgiann-lumihud"]:RemoveStatusHud("testHud")

GetTotalKm

Returns the total tm value of the vehicle

exports["tgiann-lumihud"]:GetTotalKm(plate)

Parameters :

Name
Type
Description

plate

string

Vehicle plate name

Example

local totalKm = exports["tgiann-lumihud"]:GetTotalKm("AB325CD")

Seatbelt

Returns whether the player's seat belt is fastened or not

exports["tgiann-lumihud"]:Seatbelt()

Example

local seatbelt = exports["tgiann-lumihud"]:Seatbelt()
Previoustgiann-lumihudNextEditable Files

Last updated 2 months ago