βοΈConfiguration
-- Default startup
TriggerEvent('0bug_Spawnselector:OpenUI')
-- Create Private Locations
event = {
event = "test:open:menu",
side = "client" -- "server", "client"
}
TriggerEvent('0bug_Spawnselector:CustomOpenUI', locations, event)
--- @param locations object Create private locations.
--- @param event object Event.
--- @return boolean Status (true: success, false: error).
-- First Join / Apartments Startup
TriggerEvent('0bug_Spawnselector:OpenUI', identifier, new)
--- @param identifier string Character identifier/citizenid.
--- @param new boolean New character.
--- @return boolean Status (true: success, false: error).General Settings
LastLocation: Enables respawn at the player's last location. (
true/false)SpawnHouses: Enables house-based spawn points (Owned houses) .(
true/false)Jobs: Enables job-specific spawn points. (
true/false)PublicLocations: Enables general public spawn locations. (
true/false)SmoothCamTime: Sets the smooth camera transition time in milliseconds.
Apartment Settings
Apartments: Enables apartment-based spawn points. (
true/false)ApartmentScriptName: The name of your apartment script. Default is "qb-apartments".
ApartmentsLocations: Auto-filled by the apartment script.
Custom Apartment Locations
GetApartments: A function to define custom apartment locations. Example usage:
House Settings
HousesLocations: Auto-filled by the house script.SQL_SELECT_HOUSES_LOCATION: Database query configuration for fetching house locations:table: The database table name (default:"player_houses").identifierColonName: Column for player identification (default:"citizenid").selectColon: Column for the house identifier (default:"house").
Custom House Logic
GetOwnedHouses: Fetches owned houses and adds them to the spawn selector. Example:
Player Spawn Function
Adding Location Example
Translations
Framework Configuration Guide
If you're using a different framework path/name (e.g., np-core instead of qb-core), you'll need to modify the threads.lua file in 0bug-core:
Open 0bug-core/threads.lua
Locate the GetFramework() function
Modify the export paths according to your framework:
Last updated