This pull request adds support for multiple realtor jobs. Just like https://github.com/Project-Sloth/ps-housing/pull/207. The exact same thing was done here, except the RealtorJobs logic is placed in the shared/config.lua file since there is no framework.lua and it's such a small piece of code.
Config.RealtorJobName was changed to Config.RealtorJobNames and is now an array of job names. It uses the same mechanism as Config.PoliceJobNames from ps-housing to check for the jobs. It's nothing visible in the UI, just that you're able to sell houses with different jobs.
Testing Steps
Add jobs to Config.RealtorJobNames.
See that /housing still fully works.
[x] Did you test the changes you made?
[x] Did you test core functionality of the script to ensure your changes do not regress other areas?
[x] Did you test your changes in multiplayer to ensure it works correctly on all clients?
Overview
This pull request adds support for multiple realtor jobs. Just like https://github.com/Project-Sloth/ps-housing/pull/207. The exact same thing was done here, except the
RealtorJobs
logic is placed in theshared/config.lua
file since there is noframework.lua
and it's such a small piece of code.More details in https://github.com/Project-Sloth/ps-housing/pull/207.
Details
See https://github.com/Project-Sloth/ps-housing/pull/207.
UI Changes / Functionality
Config.RealtorJobName
was changed toConfig.RealtorJobNames
and is now an array of job names. It uses the same mechanism asConfig.PoliceJobNames
from ps-housing to check for the jobs. It's nothing visible in the UI, just that you're able to sell houses with different jobs.Testing Steps
Config.RealtorJobNames
./housing
still fully works.