Open CONFIG/BREEDS.lua
Select which horse you would like to job or player lock Here we'll take the mule "Mealy Bay" as example.
First case : Job or player lock horse purchase
See the end of the line for this horse :
If you want to job lock
Set ROLELOCK = true
and then set the desired jobs in the ROLES table: ROLES = {"trapper","doctor","horsetrainer"},
Use the exact job name returned by your framework (you can verify it in the player character table. For rsg this would be the same. You can also check rsg-core/shared/jobs.lua, the table key/label is what your job export returns.
If you want to player lock
Set PLAYERLOCK = true
then set the desired player lock in the PLAYERS table.
PLAYERS = {[1] = {identifier = "steam:1100001001011", charid = 1},[2] = {identifier = "steam:1100001001011", charid = 3},}
identifier should be a string and charid an integer.
Second case : Job or player lock General customization
Keep in mind this will restrict general customization (the only remaining option will be gender).
For more detailed customization locks, you should restrict the options directly in the stables table, for example:
If you want to job lock
Set CUSTOM_ROLELOCK = true
and then set the desired jobs in the CUSTOM_ROLES table: CUSTOM_ROLES = {"trapper","doctor","horsetrainer"},
Job name should be the one set in your character database table.
If you want to player lock
Set CUSTOM_PLAYERLOCK = true
then set the desired player lock in the CUSTOM_PLAYERS table.
CUSTOM_PLAYERS = {[1] = {identifier = "steam:1100001001011", charid = 1},[2] = {identifier = "steam:1100001001011", charid = 3},}
identifier should be a string and charid an integer.