Open CONFIG/STABLES.lua
Job Based
Set rolerestriction = true
Feed the rolesallowed table and set the desired permission bool for each param:
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.
rolesallowed = {
[1] = {Role = "OTHER_JOBS", Menu_Options_Enabled = {main_menu = true, breed_horse_menu = true, custom_eyes = true, custom_coat = true, custom_coat_gene = true, custom_scale = true, display_owned = true, heal_horse = true, purchase_horse = true, purchase_horse_tack = true, horse_barber = true, set_horse_tack = true, sell_horse = true, delete_horse = true, sell_horse_tack = true, set_custom_title = true, rename_horse = true, spawn_horse = true, neuter_horse = true, show_parents_info = true, change_horse_personality = true},}, -- EVERY OTHER JOBS THAN THE ONES LISTED BELOW WILL GET THESE VALUES
[2] = {Role = "horsetrainer", Menu_Options_Enabled = {main_menu = true, breed_horse_menu = true, custom_eyes = true, custom_coat = true, custom_coat_gene = true, custom_scale = true, display_owned = true, heal_horse = true, purchase_horse = true, purchase_horse_tack = true, horse_barber = true, set_horse_tack = true, sell_horse = true, delete_horse = true, sell_horse_tack = true, set_custom_title = true, rename_horse = true, spawn_horse = true, neuter_horse = true, show_parents_info = true, change_horse_personality = true},},
},
When having Role = "OTHER_JOBS" it means every other job not listed below that line will get these permissions.
Player Based
Set playersrestriction = true
Feed the playersallowed table and set the desired permission bool for each param:
Find the IDENTIFIER and CHARID in your framework character database table
playersallowed = {
[1] = {IDENTIFIER = "OTHER_PLAYERS", CHARID = "OTHER_PLAYERS", Menu_Options_Enabled = {main_menu = true, breed_horse_menu = true, custom_eyes = true, custom_coat = true, custom_coat_gene = true, custom_scale = true, display_owned = true, heal_horse = true, purchase_horse = true, purchase_horse_tack = true, horse_barber = true, set_horse_tack = true, sell_horse = true, delete_horse = true, sell_horse_tack = true, set_custom_title = true, rename_horse = true, spawn_horse = true, neuter_horse = true, show_parents_info = true, change_horse_personality = true},}, -- EVERY OTHER PLAYER THAN THE ONES LISTED BELOW WILL GET THESE VALUES
[2] = {IDENTIFIER = "steam:10001010001", CHARID = 1, Menu_Options_Enabled = {main_menu = true, breed_horse_menu = true, custom_eyes = true, custom_coat = true, custom_coat_gene = true,custom_scale = true, display_owned = true, heal_horse = true, purchase_horse = true, purchase_horse_tack = true, horse_barber = true, set_horse_tack = true, sell_horse = true, delete_horse = true, sell_horse_tack = true, set_custom_title = true, rename_horse = true, spawn_horse = true, neuter_horse = true, show_parents_info = true, change_horse_personality = true},},
},
IDENTIFIER = "OTHER_PLAYERS", CHARID = "OTHER_PLAYERS" means every other player not listed below that line will get these permissions.
IDENTIFIER = "steam:99", CHARID = 1
IDENTIFIER format should be a string and CHARID should be an int. If you're using RSG CHARID will be the citizenid.
Please note the format for identifier. it should be "steam:99", not "steam_99" if using VORP
Each permission table controls access to:
Buying/selling horses
Breeding
Customization (coat, eyes, scale)
Tack
Healing
Spawning
Neutering
Renaming
Personality changes
And more