Vestige Scripts
TebexDiscordYoutube
  • 🔨Tuff Script's
  • SCRIPTS
    • Tuff Advance WheelStancer
      • 💻Installation Guide
        • 🔴QBCore Trigger Installation
        • ⚪ESX Trigger Installation
      • ⚙️Config File
    • Tuff Advance Nitrous and Purge
      • 💻Installation Guide
      • ⚙️Config File
  • others
    • Discord Webhook
Powered by GitBook
On this page
  • Default QBCore Core Events !
  • Jim-Mechanic QBCore Core Events !
  • Script Finalization
  1. SCRIPTS
  2. Tuff Advance WheelStancer
  3. Installation Guide

QBCore Trigger Installation

PreviousInstallation GuideNextESX Trigger Installation

Last updated 1 year ago

Default QBCore Core Events !

If you are using default qb-core framework follow these:

  • Open resources\[qb]\qb-core\client\functions.lua file and search the following function :

function QBCore.Functions.SetVehicleProperties(vehicle, props)

Add the following trigger at the end of the searched function:

-- Trigger the callback to get stance values
        QBCore.Functions.TriggerCallback('Garages:server:GetStanceValues', function(stance_value)
            if stance_value ~= nil then
                TriggerServerEvent('Stancer_sv:LoadStanceValues', stance_value, VehToNet(vehicle))
            end
        end, props.plate)

It should look like this :


Jim-Mechanic QBCore Core Events !

If you are using Jim-Mechanic use the following instructions !

  • Open resources\[qb]\qb-core\client\functions.lua file and search the following function :

function QBCore.Functions.SetVehicleProperties(vehicle, props)

Add the following trigger at the end of the searched function:

-- Trigger the callback to get stance values
        QBCore.Functions.TriggerCallback('Garages:server:GetStanceValues', function(stance_value)
            if stance_value ~= nil then
                TriggerServerEvent('Stancer_sv:LoadStanceValues', stance_value, VehToNet(vehicle))
            end
        end, props.plate)

It should look like this :


Script Finalization

After doing the above changes go through config.lua file to customize the script to your liking. Start/Restart the server to apply the changes and you are good to go !


If you are using jim-mechanic script your core event will be different in qb-core framework so you will have to follow these instructions : For reference you can check this link !

💻
🔴
Jim-Mechanic
QBCore Framework
Example Picture for Default QBCore Trigger Addition
Jim Mechanics
Example Picture if using Jim Mechanics Script Trigger Addition