Server adapters bridge Doctorjob to your framework (character data, permissions, money, inventory/usable items) and handle DB initialization.Most of the methods below are required for normal functionality. Some are optional (called out explicitly).InitializeDB()
Creates the required tables if they don’t exist
Ensures required default records exist (for example, a default hospital)
ResurrectPlayer(targetID)
targetID (number) dynamic ID of RedM
GetCharJob(targetID)
targetID (number) dynamic ID of RedM
Returns: a string containing the job name
GetCharIdentifier(targetID)
targetID (number) dynamic ID of RedM
Returns: a string or number containing the character identifier
GetCharFirstname(targetID)
targetID (number) dynamic ID of RedM
Returns: a string containing the char firstname
GetCharLastname(targetID)
targetID (number) dynamic ID of RedM
Returns: a string containing the char lastname
GetCharMoney(targetID)
targetID (number) dynamic ID of RedM
Returns: a number containing the amount of the char’s money
RemoveCurrency(targetID, currency, amount)
targetID (number) dynamic ID of RedM
currency (number|string) ID of the currency to remove (framework-specific; ignore if unused)
amount (number) the amount of money to be taken
GetCharGroup(targetID)
targetID (number) dynamic ID of RedM
Returns: a string containing the char group (ex. VORP could have ‘admin’, ‘user’…). It’s needed to identify whether the user is an admin or not.
RegisterUsableItems()
Registers all Doctorjob usable items with your framework
Must include vaccine items from Config.vaccines.items
RemoveItem(targetID, itemId, amount)
targetID (number) dynamic ID of RedM
itemId (string) item name/id in your inventory system
amount (number)
GetPatientNotes(patientIdentifier)
patientIdentifier (string|number) persistent character identifier
patientIdentifier should match what your adapter returns from GetCharIdentifier().
Optional methods
GetInventoryItems(targetID)
targetID (number) dynamic ID of RedM
Returns: a list of inventory items (framework-dependent)
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"MegaWorks Documentation","colors":{"primary":"#0095cf","light":"#0095cf","dark":"#01384D"},"favicon":"/logo/logo.png","logo":{"light":"https://mintcdn.com/megaworks/Xh15sZbjldnZkB7f/logo/logo.png?fit=max\u0026auto=format\u0026n=Xh15sZbjldnZkB7f\u0026q=85\u0026s=283fd3b5147cb68a5ffb706246d4be0c","dark":"https://mintcdn.com/megaworks/Xh15sZbjldnZkB7f/logo/logo.png?fit=max\u0026auto=format\u0026n=Xh15sZbjldnZkB7f\u0026q=85\u0026s=283fd3b5147cb68a5ffb706246d4be0c"},"navbar":{"links":[],"primary":{"type":"button","label":"Get more support","href":"https://discord.megaworks.dev"}},"footer":{"socials":{"github":"https://github.com/MegaITA","discord":"https://discord.megaworks.dev"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Store","href":"https://store.megaworks.dev","icon":"book-open-cover"},{"anchor":"Discord","href":"https://discord.megaworks.dev","icon":"discord"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"megaworks","hasAudioNarration":false,"actualSubdomain":"megaworks","customDomains":["docs.megaworks.dev"],"gitSource":{"type":"github","owner":"alebertz","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae922ac23e9642788d55e0d:success","clientVersion":"0.0.4177","searchFilterCounts":[{"language":"default","tag":"Documentation","count":33},{"language":"default","tag":"Mega Doctorjob","count":20},{"language":"default","tag":"Configuration","count":18},{"language":"default","tag":"Mega Entities","count":7},{"language":"default","tag":"API Reference","count":4},{"language":"default","tag":"Adapters","count":3},{"language":"default","tag":"Mega Metabolism","count":3},{"language":"default","tag":"Mega Companies","count":2},{"language":"default","tag":"Custom Diseases","count":2},{"language":"default","tag":"Help","count":2}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"scripts/doctorjob/adapters/server","slug":"/scripts/doctorjob/adapters/server","pageMetadata":{"title":"Server-Side Adapter","icon":"server","description":null,"href":"/scripts/doctorjob/adapters/server","hidden":false},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,em:`em`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Info}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`methods-v2`,children:`Methods (V2)`}),`\n`,_jsx(_components.p,{children:`Server adapters bridge Doctorjob to your framework (character data, permissions, money, inventory/usable items) and handle DB initialization.`}),`\n`,_jsx(_components.p,{children:`Most of the methods below are required for normal functionality. Some are optional (called out explicitly).`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`InitializeDB()`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Creates the required tables if they don’t exist`}),`\n`,_jsx(_components.li,{children:`Ensures required default records exist (for example, a default hospital)`}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`ResurrectPlayer(targetID)`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`targetID (number) dynamic ID of RedM`}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`GetCharJob(targetID)`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`targetID (number) dynamic ID of RedM`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns`}),`: a `,_jsx(_components.em,{children:`string`}),` containing the job name`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`GetCharIdentifier(targetID)`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`targetID (number) dynamic ID of RedM`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns`}),`: a `,_jsx(_components.em,{children:`string`}),` or `,_jsx(_components.em,{children:`number`}),` containing the character identifier`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`GetCharFirstname(targetID)`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`targetID (number) dynamic ID of RedM`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns`}),`: a `,_jsx(_components.em,{children:`string`}),` containing the char firstname`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`GetCharLastname(targetID)`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`targetID (number) dynamic ID of RedM`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns`}),`: a `,_jsx(_components.em,{children:`string`}),` containing the char lastname`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`GetCharMoney(targetID)`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`targetID (number) dynamic ID of RedM`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns`}),`: a `,_jsx(_components.em,{children:`number`}),` containing the amount of the char’s money`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`RemoveCurrency(targetID, currency, amount)`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`targetID (number) dynamic ID of RedM`}),`\n`,_jsx(_components.li,{children:`currency (number|string) ID of the currency to remove (framework-specific; ignore if unused)`}),`\n`,_jsx(_components.li,{children:`amount (number) the amount of money to be taken`}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`GetCharGroup(targetID)`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`targetID (number) dynamic ID of RedM`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns`}),`: a `,_jsx(_components.em,{children:`string`}),` containing the char group (ex. VORP could have ‘admin’, ‘user’…). It’s needed to identify whether the user is an admin or not.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`RegisterUsableItems()`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Registers all Doctorjob usable items with your framework`}),`\n`,_jsxs(_components.li,{children:[`Must include vaccine items from `,_jsx(_components.code,{children:`Config.vaccines.items`})]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`RemoveItem(targetID, itemId, amount)`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`targetID (number) dynamic ID of RedM`}),`\n`,_jsx(_components.li,{children:`itemId (string) item name/id in your inventory system`}),`\n`,_jsx(_components.li,{children:`amount (number)`}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`GetPatientNotes(patientIdentifier)`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`patientIdentifier (string|number) persistent character identifier`}),`\n`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`patientIdentifier`}),` should match what your adapter returns from `,_jsx(_components.code,{children:`GetCharIdentifier()`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`optional-methods`,children:`Optional methods`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`GetInventoryItems(targetID)`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`targetID (number) dynamic ID of RedM`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns`}),`: a list of inventory items (framework-dependent)`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Server-Side Adapter","icon":"server","description":null,"href":"/scripts/doctorjob/adapters/server","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Methods (V2)","slug":"methods-v2","depth":2,"children":[]},{"title":"Optional methods","slug":"optional-methods","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"megaworks","siteName":"MegaWorks Documentation","title":"Server-Side Adapter - MegaWorks Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-08T20:24:06.429Z","originalFileLocation":"scripts/doctorjob/adapters/server.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"MegaWorks Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/megaworks/s7e4UE1ISOVETAVk/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/megaworks/s7e4UE1ISOVETAVk/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/megaworks/s7e4UE1ISOVETAVk/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/megaworks/s7e4UE1ISOVETAVk/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/megaworks/s7e4UE1ISOVETAVk/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/megaworks/s7e4UE1ISOVETAVk/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/megaworks/s7e4UE1ISOVETAVk/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/megaworks/s7e4UE1ISOVETAVk/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/megaworks/s7e4UE1ISOVETAVk/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Server-Side Adapter - MegaWorks Documentation\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MegaWorks Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.megaworks.dev/scripts/doctorjob/adapters/server\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://megaworks.mintlify.site/_mintlify/api/og/v2?division=Adapters\u0026amp;title=Server-Side+Adapter\u0026amp;theme=9643f30bb6c7e0444b4adb67\u0026amp;signature=5261c506e0275287c0cdbc80ebf7e7e5d3e05fd8c71cff8ea40d6f96ed613ba1\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Server-Side Adapter - MegaWorks Documentation\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://megaworks.mintlify.site/_mintlify/api/og/v2?division=Adapters\u0026amp;title=Server-Side+Adapter\u0026amp;theme=9643f30bb6c7e0444b4adb67\u0026amp;signature=5261c506e0275287c0cdbc80ebf7e7e5d3e05fd8c71cff8ea40d6f96ed613ba1\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/megaworks/s7e4UE1ISOVETAVk/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MegaWorks Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0095cf\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.megaworks.dev/scripts/doctorjob/adapters/server\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/scripts/doctorjob/adapters/server.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.megaworks.dev/#organization\",\"name\":\"MegaWorks Documentation\",\"url\":\"https://docs.megaworks.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/megaworks/Xh15sZbjldnZkB7f/logo/logo.png?fit=max\u0026auto=format\u0026n=Xh15sZbjldnZkB7f\u0026q=85\u0026s=283fd3b5147cb68a5ffb706246d4be0c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.megaworks.dev#website\",\"name\":\"MegaWorks Documentation\",\"url\":\"https://docs.megaworks.dev\",\"publisher\":{\"@id\":\"https://docs.megaworks.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.megaworks.dev/scripts/doctorjob/adapters/server#webpage\",\"url\":\"https://docs.megaworks.dev/scripts/doctorjob/adapters/server\",\"name\":\"Server-Side Adapter\",\"dateModified\":\"2026-03-08T20:24:06.429Z\",\"isPartOf\":{\"@id\":\"https://docs.megaworks.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.megaworks.dev/scripts/doctorjob/adapters/server#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.megaworks.dev/scripts/doctorjob/adapters/server#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Mega Doctorjob\",\"item\":\"https://docs.megaworks.dev/scripts/doctorjob/configuration/config\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Adapters\",\"item\":\"https://docs.megaworks.dev/scripts/doctorjob/adapters/adapters\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Server-Side Adapter\",\"item\":\"https://docs.megaworks.dev/scripts/doctorjob/adapters/server\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.megaworks.dev/scripts/doctorjob/adapters/server#article\",\"headline\":\"Server-Side Adapter\",\"name\":\"Server-Side Adapter\",\"url\":\"https://docs.megaworks.dev/scripts/doctorjob/adapters/server\",\"mainEntityOfPage\":{\"@id\":\"https://docs.megaworks.dev/scripts/doctorjob/adapters/server#webpage\"},\"dateModified\":\"2026-03-08T20:24:06.429Z\",\"publisher\":{\"@id\":\"https://docs.megaworks.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.megaworks.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"MegaWorks Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"MegaWorks Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/scripts/doctorjob/adapters/server.md","siteName":"MegaWorks Documentation","nav":{"global":{"anchors":[{"anchor":"Store","href":"https://store.megaworks.dev","icon":"book-open-cover"},{"anchor":"Discord","href":"https://discord.megaworks.dev","icon":"discord"}]},"anchors":[{"anchor":"Documentation","icon":"book-open","groups":[{"group":"Scripts","pages":[{"title":"Getting started","icon":"info","href":"/scripts/quickstart"}]},{"group":"Mega Doctorjob","pages":[{"group":"Configuration","icon":"wrench","pages":[{"title":"Config.lua","icon":"gear","href":"/scripts/doctorjob/configuration/config"},{"title":"Diseases.lua","icon":"virus","href":"/scripts/doctorjob/configuration/diseases"},{"title":"Items.lua","icon":"box","href":"/scripts/doctorjob/configuration/items"},{"title":"Beds.lua","icon":"bed-pulse","href":"/scripts/doctorjob/configuration/beds"},{"title":"Hospitals.lua","icon":"hospital","href":"/scripts/doctorjob/configuration/hospitals"},{"title":"DamageTypes.lua","icon":"heart-pulse","href":"/scripts/doctorjob/configuration/damagetypes"},{"title":"DamageLogger.lua","icon":"file-medical","href":"/scripts/doctorjob/configuration/damagelogger"},{"title":"HelpRequests.lua","icon":"bell-concierge","href":"/scripts/doctorjob/configuration/helprequests"},{"title":"Transmission.lua","icon":"virus","href":"/scripts/doctorjob/configuration/transmission"},{"title":"Vaccines.lua","icon":"syringe","href":"/scripts/doctorjob/configuration/vaccines"},{"title":"Language.lua","icon":"language","href":"/scripts/doctorjob/configuration/language"}]},{"group":"Custom Diseases","icon":"code","pages":[{"title":"Getting Started","href":"/scripts/doctorjob/custom-diseases/custom-diseases"},{"title":"Disease Class","href":"/scripts/doctorjob/custom-diseases/disease-class"}]},{"group":"API Reference","icon":"code","pages":[{"title":"Doctorjob API","href":"/scripts/doctorjob/doctorjob-api/doctorjob-api"},{"title":"Doctorjob API [V2]","href":"/scripts/doctorjob/doctorjob-api/doctorjob-api-v2"}]},{"group":"Adapters","icon":"plug","pages":[{"title":"Getting Started","icon":"info","href":"/scripts/doctorjob/adapters/adapters"},{"title":"Client-Side Adapter","icon":"user","description":null,"href":"/scripts/doctorjob/adapters/client"},{"title":"Server-Side Adapter","icon":"server","href":"/scripts/doctorjob/adapters/server"}]},{"group":"Help","icon":"life-ring","pages":[{"title":"Troubleshooting","icon":"bug","description":null,"href":"/scripts/doctorjob/help/troubleshooting"},{"title":"In-game usage","icon":"gamepad","href":"/scripts/doctorjob/help/usage"}]}]},{"group":"Mega Companies","pages":[{"title":"Installation","icon":"download","href":"/scripts/companies/installation"},{"group":"API Reference","icon":"code","pages":[{"title":"Companies API","href":"/scripts/companies/api-reference/companies-api"}]}]},{"group":"Mega Entities","pages":[{"group":"Configuration","icon":"wrench","pages":[{"title":"Groups.lua","icon":"user-group","href":"/scripts/entities/configuration/groups"},{"title":"Infected.lua","icon":"user","href":"/scripts/entities/configuration/infected"},{"title":"Hordes.lua","icon":"user-group","href":"/scripts/entities/configuration/hordes"},{"title":"Safezones.lua","icon":"shield","href":"/scripts/entities/configuration/safezones"},{"title":"Worldwide.lua","icon":"globe","href":"/scripts/entities/configuration/worldwide"},{"title":"Zones.lua","icon":"map-location-dot","href":"/scripts/entities/configuration/zones"}]},{"group":"API","icon":"code","pages":[{"title":"Entities API","href":"/scripts/entities/api/api"}]}]},{"group":"Mega Metabolism","pages":[{"title":"Overview","icon":"info","href":"/scripts/metabolism/index"},{"group":"Configuration","icon":"wrench","pages":[{"title":"Config.lua","icon":"gear","href":"/scripts/metabolism/configuration/config"}]},{"group":"API Reference","icon":"code","pages":[{"title":"Metabolism API","href":"/scripts/metabolism/api/api"}]}]},{"group":"Dev Libraries","pages":[{"title":"Work in progress","href":"/libraries/Work in progress"}]}]}]},"basePath":"","title":"Server-Side Adapter - MegaWorks Documentation","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":[],"chunks":[]}