mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
Added Config for default duty
This commit is contained in:
@@ -20,3 +20,4 @@ Config.EnablePVP = true -- Allow Player to player combat
|
||||
|
||||
Config.Multichar = false -- Enable support for esx_multicharacter
|
||||
Config.Identity = true -- Select a characters identity data before they have loaded in (this happens by default with multichar)
|
||||
Config.OnDuty = true -- Default state of the on duty system
|
||||
@@ -376,7 +376,7 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
|
||||
self.job.grade_name = gradeObject.name
|
||||
self.job.grade_label = gradeObject.label
|
||||
self.job.grade_salary = gradeObject.salary
|
||||
self.job.onDuty = true
|
||||
self.job.onDuty = Config.OnDuty
|
||||
|
||||
if gradeObject.skin_male then
|
||||
self.job.skin_male = json.decode(gradeObject.skin_male)
|
||||
|
||||
@@ -156,7 +156,7 @@ function loadESXPlayer(identifier, playerId, isNew)
|
||||
userData.job.grade_name = gradeObject.name
|
||||
userData.job.grade_label = gradeObject.label
|
||||
userData.job.grade_salary = gradeObject.salary
|
||||
userData.job.onDuty = true
|
||||
userData.job.onDuty = Config.OnDuty
|
||||
|
||||
userData.job.skin_male = {}
|
||||
userData.job.skin_female = {}
|
||||
|
||||
Reference in New Issue
Block a user