Installation
Download loaf_realtor
Download loaf_realtor from the Cfx portal and add it to your resources folder
Install dependencies
Download and install the following dependencies:
- loaf_billing (make sure to rename the folder to
loaf_billing) - loaf_housing
Run SQL files
Run the realtor.sql file in your database. If you use ESX, also run the esx.sql file.
Enable realtor in housing
Go to loaf_housing/config/config.lua and set enabled to true in the Config.Realtor table
Configure framework
Go to loaf_realtor/config/config.lua and set framework to your framework:
- esx
- qb
Add to server.cfg
Add start loaf_realtor to your server.cfg file. You do not need to start loaf_housing or loaf_billing.
QBCore job
If you use QBCore, add the following to qb-core/shared/jobs.lua:
["rea"] = {
label = "Real estate agent",
defaultDuty = true,
offDutyPay = false,
grades = {
["0"] = {
name = "Trainee",
payment = 75
},
["1"] = {
name = "Agent",
payment = 100
},
["2"] = {
name = "Manager",
payment = 150
},
["3"] = {
name = "Boss",
payment = 200,
isboss = true
},
},
},If you use qb-bossmenu instead of qb-management, go to qb-bossmenu/config.lua and add the following:
["rea"] = vector3(8000.0, 0.0, -1000.0),Then, go to qb-bossmenu/accounts.json and add the following:
"rea": 0