uyuyorumstore
um-ronin-spawn

Setup

How to install and configure um-ronin-spawn

A cinematic spawn. The character wakes up at his own place, picks up a habit and walks to a fork: the window leads to any spawn point, the door to his saved places. On the way he may be caught in a cutscene, then he wakes up where he chose. Dead characters skip all of it and spawn at their last location.

Select Framework

Firstly

  • Make sure your qbx_core version is not old
  • Delete other spawn scripts like qbx_spawn, qb-spawn or um-spawn
qbx_core > config > client.lua
startingApartment = true  ->> set false

Multicharacter

Auto Load

um-ronin-multicharacter detects um-ronin-spawn on its own and starts it for new and existing characters. Nothing to do.

Trigger this from the server once the character is loaded and the screen is faded out:

TriggerClientEvent('um-ronin-spawn:client:characterLoaded', src)

A multicharacter set up for um-spawn keeps working: its um-spawn:client:startSpawnUI event is accepted too.

Starter Apartments

New Characters

A character that owns nothing gets a dedicated apartments screen and rents his first place from your housing script. Same convar as um-spawn.

server.cfg
setr um:NewPlayerApartmentInsideStart "true"
Housing scriptOwned placesStarter apartment
qbx_propertiesSupportedSupported
qb-apartments / qbx_apartmentsSupportedSupported
qb-houses / qs-housingSupported-
ps-housingSupportedSupported
bcs_housingSupportedSupported
nolag_propertiesSupportedSupported
snipe-motelSupportedSupported

Server.cfg

Load Order

um-ronin-spawn must ensure after your housing script and before um-ronin-multicharacter. The multicharacter looks for it once, at its own start.

server.cfg
# um config
setr um:NewPlayerApartmentInsideStart "true"
---------------

ensure oxmysql
ensure ox_lib
--------------
ensure qbx_core
ensure [qbx]
ensure [standalone]
--------------
ensure um-ronin-spawn
ensure um-ronin-multicharacter

You have completed the installation

Firstly

  • Make sure your qb-core version is not old
  • Delete other spawn scripts like qb-spawn or um-spawn

Multicharacter

Auto Load

um-ronin-multicharacter detects um-ronin-spawn on its own and starts it for new and existing characters. Nothing to do.

Trigger this from the server once the character is loaded and the screen is faded out:

TriggerClientEvent('um-ronin-spawn:client:characterLoaded', src)

A multicharacter set up for um-spawn keeps working: its um-spawn:client:startSpawnUI event is accepted too.

Starter Apartments

server.cfg
setr um:NewPlayerApartmentInsideStart "true"
Housing scriptOwned placesStarter apartment
qb-apartmentsSupportedSupported
qb-houses / qs-housingSupported-
ps-housingSupportedSupported
bcs_housingSupportedSupported
nolag_propertiesSupportedSupported
snipe-motelSupportedSupported

Server.cfg

Load Order

um-ronin-spawn must ensure after your housing script and before um-ronin-multicharacter.

server.cfg
# um config
setr um:NewPlayerApartmentInsideStart "true"
---------------

ensure oxmysql
ensure ox_lib
--------------
ensure qb-core
ensure [qb]
ensure [standalone]
--------------
ensure um-ronin-spawn
ensure um-ronin-multicharacter

You have completed the installation

Firstly

  • Make sure your es_extended version is not old
  • Delete other spawn scripts

Multicharacter

Nothing to trigger. The spawn starts itself on esx:playerLoaded. A multicharacter on ESX must not spawn the player on its own. One set up for um-spawn keeps working: its exports['um-spawn']:UMSpawnStart(coords) call waits for this spawn to end.

Police Jobs

ESX has no job types, so list every law enforcement job by name:

config > main.lua
policeJobs = { 'police', 'sheriff' },

Server.cfg

server.cfg
ensure oxmysql
ensure ox_lib
--------------
ensure es_extended
ensure [core]
ensure [standalone]
--------------
ensure um-ronin-spawn

Requirements

On this page