okokDocs
  • About Us
  • Scripts
    • okokVehicleControl
      • Config file
    • okokMechanicJob
      • Config file
    • okokPoliceJob
      • Config file
      • qb-inventory support
    • okokBossMenu
      • Config file
    • okokMulticharacter
      • Config file
    • okokPhone
    • okokSpawnSelector
      • Config file
      • qb-multicharacter support
    • okokLoadingScreen
      • Config file
    • okokVehicleSales
      • Config file
    • okokShop
      • Config file
    • okokGasStation
      • Config file
    • okokTuning
      • Config file
    • okokGarage
      • Config file
      • RGB vehicle colors
      • Inventories metadata
      • Housing integrations
      • qb-phone support
    • okokVehicleShop
      • Config file
      • Common errors
    • okokBanking
      • Config file
      • Paycheck transactions
      • Registering transactions
    • okokMarketplace
      • Config file
      • Common errors
    • okokChat
      • Config file
      • Export
    • okokBilling
      • Config file
      • Snippets
    • okokCrafting
      • Config file
    • okokContract
      • Config file
    • okokTalkToNPC
      • Config file
    • okokReports
      • Config file
    • okokNotify
      • Config file
      • Snippets
    • okokTextUI
      • Config file
      • Snippets
    • okokRequests
    • okokDeleteVehicles
      • Config file
  • Others
    • Discord Webhook
Powered by GitBook
On this page
  • Installation Guide
  • Requirements
  • Event to open the menu
  • vSync compatibility
  • Server artifacts
  1. Scripts

okokSpawnSelector

PreviousokokPhoneNextConfig file

Last updated 1 year ago

Installation Guide

Requirements

ox_lib ().

Event to open the menu

TriggerEvent('okokSpawnSelector:spawnMenu', newCharacter, lastCoords)
TriggerClientEvent('okokSpawnSelector:spawnMenu', source, newCharacter, lastCoords)

newCharacter should be true or false.

lastCoords is optional and it's used to pass the last location of the player (format example: {"x":936.40,"y":59.09,"z":111.03}).

vSync compatibility

Add the following line at the end of the vSync/vs_server.lua file:

exports('getWeatherState', function() return CurrentWeather end)

Server artifacts

Make sure your server artifacts version is above the 5181.

Windows:

Linux:

https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/
https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/
YouTube Video
https://github.com/overextended/ox_lib/releases/latest/download/ox_lib.zip
LogoReleases · overextended/ox_libGitHub