πJob Center
for developers
Configuration
Configuration events of files in gksphone/config/jobs
Job list and general settings section of jobs
icon = https://fonts.google.com/icons
MimWorkers = Minimum number of players to work
MaxWorkers = Maximum number of players to work
Location = If there is a position, specify it as vector3 or vector4 if there is no position, make it false
RequiredItem = If there is an item required to see the job, write the item code here, if not, set it to false
IsActive = to set the availability of the job
["sanitation"] = {
["Name"] = "Job Code",
["Label"] = "Name of the Job",
["Description"] = "Job description",
["Icon"] = "Icon Name",
["IconColor"] = "Icon color",
["Rating"] = 2,
["MimWorkers"] = 1,
["MaxWorkers"] = 2,
["Location"] = false,
["RequiredItem"] = false,
},
job code = job code in sh_jobs.lua
TaskId = Start from 1 and increment by one
TaskText = description of the task ( %s can be edited using export )
ExtraDone = 0 -- if it is a stepped job, this is the starting count
ExtraNeed = 10, -- If it is a stepped job, specify the number you want to reach
Events
Sample files are available in gksphone/client/apps/job and gksphone/server/job.
Exports - Server
GetJobGroupByLeader
Brings the group information of the person who is the Group Leader.
DeleteJobGroup
Delete Group
GetGroupByMember
Returns the information of the group with the player identifier
Exports - Client
IsGroupLeader
IsTaskStatus
TaskUpdate
TaskListUpdate
If you want to make changes in Task List Text, you can use
TaskList
Last updated