qbcore-framework / qb-apartments

Apartment Script Used With QB-Core :house:
GNU General Public License v3.0
25 stars 197 forks source link

[QOL] Pull useStartingApartments config option from qb-multicharacter #86

Closed tom-osborne closed 2 years ago

tom-osborne commented 2 years ago

Describe Pull request Currently, if a user wishes to setup their server to not use the starting apartments, they have to change a config option in both qb-apartments and qb-multicharacter. This PR acts to streamline that process by making the qb-multicharacter option control the logic within qb-apartments.

qb-multicharacter now passes its config option as an argument to the setupSpawnUI event in qb-apartments.

Linked to https://github.com/qbcore-framework/qb-multicharacter/pull/130

Questions (please complete the following information):

BerkieBb commented 2 years ago

Where is useStartingApartments defined?

tom-osborne commented 2 years ago

Where is useStartingApartments defined?

It is passed as an argument from qb-multicharacter when the setupSpawnUI event is called. It passes the config option value in qb-multicharacter