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
  • loaders.lua
  • loadModel(model)
  • unloadModel(model)
  • loadAnimDict(animDict)
  • unloadAnimDict(animDict)
  • loadPtfxDict(ptFxName)
  • unloadPtfxDict(dict)
  • loadTextureDict(dict)
  • loadScriptBank(bank)
  • loadAmbientBank(bank)
  • playAnim(animDict, animName, duration?, flag?, ped?, speed?)
  • stopAnim(animDict, animName, ped?)
  • playGameSound(audioBank, soundSet, soundRef, coords, synced, range?)
  1. Dependency
  2. Jim_Bridge

Loader Functions

loaders.lua

This module provides loading utilities for common asset types such as models, animations, texture dictionaries, and audio banks. It also provides animation and sound helpers.

loadModel(model)

Loads a model into memory if valid and not already loaded.

Example:

loadModel('prop_chair_01a')

unloadModel(model)

Unloads a model from memory.

Example:

unloadModel('prop_chair_01a')

loadAnimDict(animDict)

Loads an animation dictionary into memory.

Example:

loadAnimDict('amb@world_human_hang_out_street@male_c@base')

unloadAnimDict(animDict)

Removes an animation dictionary from memory.

Example:

unloadAnimDict('amb@world_human_hang_out_street@male_c@base')

loadPtfxDict(ptFxName)

Loads a particle effect (ptfx) dictionary.

Example:

loadPtfxDict('core')

unloadPtfxDict(dict)

Unloads a particle effect dictionary from memory.

Example:

unloadPtfxDict('core')

loadTextureDict(dict)

Loads a streamed texture dictionary.

Example:

loadTextureDict('commonmenu')

loadScriptBank(bank)

Loads a script audio bank.

Returns true on success.

Example:

local success = loadScriptBank('DLC_HEISTS_GENERAL_FRONTEND_SOUNDS')

loadAmbientBank(bank)

Loads an ambient audio bank.

Returns true on success.

Example:

local success = loadAmbientBank('AMB_REVERB_GENERIC')

playAnim(animDict, animName, duration?, flag?, ped?, speed?)

Plays an animation on a ped.

Loads the dictionary if not already loaded.

Example:

playAnim('amb@world_human_hang_out_street@male_c@base', 'base', 5000, 1, PlayerPedId(), 1.0)

stopAnim(animDict, animName, ped?)

Stops an animation and unloads the dictionary.

Example:

stopAnim('amb@world_human_hang_out_street@male_c@base', 'base', PlayerPedId())

playGameSound(audioBank, soundSet, soundRef, coords, synced, range?)

Plays a game sound from a coordinate or entity.

Example:

playGameSound('DLC_HEIST_HACKING_SNAKE_SOUNDS', 'Beep', vector3(0, 0, 0), false, 15.0)

PreviousScript HelpersNextCallbacks

Last updated 4 days ago