JixelPatterns
  • JixelPatterns Documentation
  • Troubleshooting
    • Common Issues
    • Setting Up Locations
    • FAQ
  • Dependency
    • Jim_Bridge
      • Animal Ped Support
      • Script Helpers
      • Loader Functions
      • Callbacks
      • Cameras
      • Context Menus
      • Crafting
      • DrawText
      • Dui Functions
      • Input Creator
      • Inventories
      • Job Functions
      • Make Functions
      • Meta Handlers
      • Notifications
      • Phones
      • Player Functions
      • Poly Zones
      • Progress Bars
      • Scale Entity
      • Shops
      • Skillcheck
      • Society Banking
      • Stash Control
      • Targets
      • Vehicles
      • Wrapper Functions
      • Scaleforms
  • Paid Assets
    • Jim-Mechanic
      • Common Issues
      • Installation
      • Locations
        • Creating a Location
      • Nitrous
      • Harness + Seatbelt
      • Emergency Repair Bench
      • Odometer
      • Speedometer
      • Performance Mods
      • Preview System
      • Repair System
      • Car Lifts
      • Plate Change
      • Push Vehicle
      • Stancer Kit
      • Vehicle Seat Picker
    • Jim-Bakery
      • Installation
    • Jim-BeanMachine
      • Installation
    • Jim-BurgerShot
      • Installation
    • Jim-CatCafe
      • Installation
    • Jim-Henhouse
      • Installation
    • Jim-PizzaThis
      • Installation
    • Jim-Popsdiner
      • Installation
  • Free Assets
    • Jim-Mining
      • Installation
      • How To Use
        • Mining
        • Stone Washing
        • Gold Panning
    • Jim-Recycle
      • Installation
      • How To Use
        • Recycling
        • Dumpster Diving
        • Scrapping
    • Jim-Payments
      • Installation
      • How To Use
    • Jim-Shops
      • Installation
      • How To Use
    • Jim-Boarding
      • Installation
      • How To Use
    • Jim-Trains
      • Installation
      • How To Use
    • Jim-Consumbles
      • Installation
      • How To Use
    • Jim-DJBooth
      • Installation
      • How To Use
    • Jim-JobGarage
      • Installation
      • How To Use
    • Jim-Chairs
      • Installation
    • Jim-Notepad
      • Installation
      • How To Use
Powered by GitBook
On this page
  • debugScaleform.lua
  • debugScaleForm(textTable, loc)
  • instructionalButtons.lua
  • makeInstructionalButtons(info)
  • scaleform_basic.lua
  • DrawText3D(coord, text, highlight)
  • DisplayHelpMsg(text)
  • displaySpinner(text)
  • stopSpinner()
  • timerBars.lua
  • createTimerHud(title, data, alpha)
  1. Dependency
  2. Jim_Bridge

Scaleforms

debugScaleform.lua

This module renders debug text in-game when debugMode is enabled. Useful for live diagnostics or UI placement feedback.

debugScaleForm(textTable, loc)

Displays an overlay of lines of text at the specified screen location.

Note: This only works if debugMode is set to true.

Parameters:

  • textTable (table): A list of strings to display.

  • loc (vector2, optional ): Top-left anchor point on screen ( default: vec2(0.05, 0.65)).

Example:

CreateThread(function()
    while true do
        debugScaleForm({
            "Line 1: Debug info",
            "Line 2: More info"
        })
        Wait(0)
    end
end)

instructionalButtons.lua

This module renders instructional button prompts using native scaleforms in GTA V and RedM.

Note: Because it uses native scaleforms, it must be run inside a while loop to remain visible.

makeInstructionalButtons(info)

Draws instructional buttons using the GTA scaleform instructional_buttons.

Parameters:

  • info (table): An array of tables, where each entry contains:

    • keys (table): Control key codes (e.g., {38, 29}).

    • text (string): The label for the button.

Example:

CreateThread(function()
    while true do
        makeInstructionalButtons({
            { keys = {38, 29}, text = "Open Menu" },
            { keys = {45}, text = "Close Menu" }
        })
        Wait(0)
    end
end)

makeRedInstructionalButtons(info, title)

Experimental: Displays prompts using RedM-style PromptSetGroup API.

Note: Still must be run in a loop for visibility.

Example:

CreateThread(function()
    while true do
        makeRedInstructionalButtons({
            { keys = {0x760A9C6F}, text = "Mount Horse" },
            { keys = {0x4CC0E2FE}, text = "Dismount" }
        }, "Horse Controls")
        Wait(0)
    end
end)

scaleform_basic.lua

This module includes helper functions for 3D text rendering and UI overlays using basic native scaleform techniques.

DrawText3D(coord, text, highlight)

Draws 3D text in the world at the given coordinates, with optional highlight.

Includes a semi-transparent black background box for visibility.

Parameters:

  • coord (vector3): World position to draw text.

  • text (string): Text content.

  • highlight (boolean, optional ): Highlights ~w~ sections with yellow.

Example:

CreateThread(function()
    while true do
        DrawText3D(vector3(100, 200, 300), "Hello World", true)
        Wait(0)
    end
end)

DisplayHelpMsg(text)

Shows a help message in the top-left corner of the screen.

Example:

DisplayHelpMsg("Press E to interact")

displaySpinner(text)

Shows a busy spinner with a message (e.g., "Saving...").

Example:

displaySpinner("Saving data...")

stopSpinner()

Hides any active busy spinner (client-only).

Example:

stopSpinner()

timerBars.lua

This module provides a native scaleform-based timer bar HUD. Ideal for displaying tasks, loading indicators, or time-sensitive objectives.

createTimerHud(title, data, alpha)

This was an attempt to recreate the gta native shooting ranges (fairly specific use case)

Draws a timer bar with custom label and right-aligned values using the native GTA HUD system.

Parameters:

  • title (string): Title/header displayed on the bar.

  • data (table): List of label = value entries to display (max 4 rows).

  • alpha (number, optional ): Opacity of the bar (0-255).

Example:

CreateThread(function()
    while true do
        createTimerHud("Timer Bar", {
            { stat = "Health", value = "85%" },
            { stat = "Armor", value = "50%", multi = 2 },
            { stat = "Stamina", value = "100%" },
        }, 180)
        Wait(0)
    end
end)
PreviousWrapper FunctionsNextJim-Mechanic

Last updated 4 days ago