1337-SCRIPTS
  • ๐Ÿ‘‹Welcome
  • ๐Ÿ“œScripts
    • โญStarter Pack Lifestyles
      • ๐ŸšงDependencies
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
    • ๐ŸงชAdvanced Plug Tables
      • ๐ŸšงDependencies
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
    • โšฐ๏ธGravediggers
      • ๐ŸšงDependencies
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
    • ๐Ÿ“ฒPhone Snatcher
      • ๐ŸšงDependencies
      • ๐Ÿ› ๏ธInstallation
      • โš™๏ธConfiguration
Powered by GitBook
On this page
  • Installation
  • QB-Clothing Integration (Show lifestyles menu when player saves appearance for the first time)
  • Illenium-apperance Integration (Show lifestyles menu when player saves appearance for the first time)
  1. Scripts
  2. Starter Pack Lifestyles

Installation

Installation

  1. Place this folder in your resources directory

  2. Add ensure 1337_lifestylesto your server.cfg

  3. Configure config.lua as needed

QB-Clothing Integration (Show lifestyles menu when player saves appearance for the first time)

  1. Open this file

qb-clothing/client/main.lua
  1. Find the event handler

RegisterNetEvent('qb-clothes:client:CreateFirstCharacter', function()
  1. At the end of that function, add

TriggerEvent("lifestyles:openMenu")

Example usage

RegisterNetEvent('qb-clothes:client:CreateFirstCharacter', function()
-- existing skin setup code...
TriggerEvent("lifestyles:openMenu")
end)

Illenium-apperance Integration (Show lifestyles menu when player saves appearance for the first time)

  1. Open this file

illenium-appearance/client/client.lua
  1. Find the event handler

function InitializeCharacter(gender, onSubmit, onCancel)
  1. After saving appearance add the lifestyle function

TriggerEvent("lifestyles:openMenu")

Example usage

TriggerServerEvent("illenium-appearance:server:saveAppearance", appearance)
if onSubmit then
     onSubmit()
          end
TriggerEvent("lifestyles:openMenu") -- Opens lifestyle menu

PreviousDependenciesNextConfiguration

Last updated 6 days ago

๐Ÿ“œ
โญ
๐Ÿ› ๏ธ