⚙️Configuration

To ensure you have everything you need, we are constantly updating our config files.

-- Change the framework to 'QB' or 'ESX':
tosun_config.framework = 'QB'

-- If you have custom frameworks names, you can change them here:
tosun_config.QB = 'qb-core'
tosun_config.ESX = 'es_extended'

-- Set it to true if you want the Logout Button to Open Multicharacter instead of making you leave the server.
tosun_config.MulticharacterLogout = false

-- You can change the background blur from here:
tosun_config.tosun_blur = true

-- Change disconnect message from here:
tosun_config.disconnect = '[Tosun_pausemenu] You have been disconnected from the server'

-- Put here your discord server invite link:
tosun_config.discord = 'https://discord.gg/FwedjEV6kY'

-- Here you can translate the script to the language you prefer
tosun_trans.discord = 'join our discord.'
tosun_trans.maps = 'MAPS'
tosun_trans.mapstxt = 'SHOW THE MAP OF THE CITY.'
tosun_trans.settings = 'SETTINGS'
tosun_trans.settingstxt = 'OPEN GAME SETTINGS MENU.'
tosun_trans.back = 'Go back to game.'
tosun_trans.disconnect = 'Disconnect from server.'
tosun_trans.infostitle = 'Character Information.'
tosun_trans.fname = 'First Name'
tosun_trans.lname = 'Last Name'
tosun_trans.gender = 'Gender'
tosun_trans.male = 'MALE'
tosun_trans.female = 'FEMALE'
tosun_trans.dob = 'Birthdate'
tosun_trans.job = 'Job'
tosun_trans.cash = 'Cash'
tosun_trans.bank = 'Bank'
tosun_trans.currency = '$'

Client Side :

Hide/Disable Pause Menu when Player is dead.

Configuration for QBCore :

  • Step 1 : Open qb-ambulancejob -> client -> laststand.lua

  • Step 2 : Search for the SetLastStand function.

    Copy

  • Step 3 : Add the following events

    Copy

  • Step 4 : Open qb-ambulance -> client -> main.lua

  • Step 5 : Go to 'hospital:client:Revive' event

    Copy

  • Step 6 : Add the following Trigger after or before ResetAll()

    Copy

Configuration for ESX :

  • Step 1 : Open esx_ambulancejob > client -> main.lua

  • Step 2 : Add the following events under function OnPlayerDeath()

    Copy

  • Step 3 : Add the following Event in 'esx_ambulancejob:revive' event

    Copy

Last updated