This section is for settings that affect the worldwide spawning system of mega_entities.The worldwide system has different strategies to populate the world with entities.
Replacement System
This system is still active in the script for those who still want to tinker with it, however it’s advised not to use it since it causes Ped Pool crashes with OneSync. It’s suggested to use Zones or WorldGrid instead.
Configuration parameters
Enabled
This option allows you to disable / enable it.
replaceWith
This option allows you to specify how peds will be replaced with mega_entities and how likely it is.
Example:
replaceWith = { ['example1'] = 0.5}
There will be 50% probability that a ped will be replaced with example1 entity.
inVehicle
Allows replacement of peds which are on wagons.
onHorse
Allows replacement of peds which are on horses.
debug
Activates / deactivates replacement system debug logs.
Worldgrid System
The worldgrid system is one of the most advanced systems to keep your server populated with entities without having to spawn hundreds of entities all over the world.
How it works
The worldgrid system divides the world into chunks which are pupulated only when players get into them. They also serve the opposite purpose, once a chunk has no players all entities inside will be removed to keep the ped pool as empty as possible.
Configuration parameters
spawnCooldown
Entitis will be re-spawned after the amount of time specified in the cooldown timer. This can happen when they get killed or removed to avoid too frequent spawn/despawn.
chunkUpdateRate
How frequently chunks will be updated, affects the performance significantly. Unless you know what you’re really doing don’t change this setting.
maxChunkPop
Max number of entities inside a chunk.
chunkPopulation
Table defining which and the probability of entities that will be spawned inside a chunk.
Example:
chunkPopulation = { -- ['entityType'] = probability [0.0, 1.0] ['infect1'] = 0.9, -- 90% probability that it will spawn ['gunslinger'] = 0.1},
{"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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"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/entities/configuration/worldwide","slug":"/scripts/entities/configuration/worldwide","pageMetadata":{"title":"Worldwide.lua","icon":"globe","description":null,"href":"/scripts/entities/configuration/worldwide","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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`worldwide-systems`,children:`Worldwide Systems`}),`\n`,_jsx(_components.p,{children:`This section is for settings that affect the worldwide spawning system of mega_entities.`}),`\n`,_jsx(_components.p,{children:`The worldwide system has different strategies to populate the world with entities.`}),`\n`,_jsx(Heading,{level:`2`,id:`replacement-system`,children:`Replacement System`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`This system is still active in the script for those who still want to tinker with it, however it’s advised `,_jsx(_components.strong,{children:`not`}),` to use it since it causes Ped Pool crashes with OneSync. It’s suggested to use Zones or WorldGrid instead.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`configuration-parameters`,children:`Configuration parameters`}),`\n`,_jsx(Heading,{level:`4`,id:`enabled`,children:`Enabled`}),`\n`,_jsx(_components.p,{children:`This option allows you to disable / enable it.`}),`\n`,_jsx(Heading,{level:`4`,id:`replacewith`,children:`replaceWith`}),`\n`,_jsx(_components.p,{children:`This option allows you to specify how peds will be replaced with mega_entities and how likely it is.\nExample:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`lua`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`lua`,children:_jsxs(_components.code,{language:`lua`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`replaceWith`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'example1'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0.5`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`There will be 50% probability that a ped will be replaced with `,_jsx(_components.code,{children:`example1`}),` entity.`]}),`\n`,_jsx(Heading,{level:`4`,id:`invehicle`,children:`inVehicle`}),`\n`,_jsx(_components.p,{children:`Allows replacement of peds which are on wagons.`}),`\n`,_jsx(Heading,{level:`4`,id:`onhorse`,children:`onHorse`}),`\n`,_jsx(_components.p,{children:`Allows replacement of peds which are on horses.`}),`\n`,_jsx(Heading,{level:`4`,id:`debug`,children:`debug`}),`\n`,_jsx(_components.p,{children:`Activates / deactivates replacement system debug logs.`}),`\n`,_jsx(Heading,{level:`2`,id:`worldgrid-system`,children:`Worldgrid System`}),`\n`,_jsx(_components.p,{children:`The worldgrid system is one of the most advanced systems to keep your server populated with entities without having to spawn hundreds of entities all over the world.`}),`\n`,_jsx(Heading,{level:`3`,id:`how-it-works`,children:`How it works`}),`\n`,_jsx(_components.p,{children:`The worldgrid system divides the world into chunks which are pupulated only when players get into them. They also serve the opposite purpose, once a chunk has no players all entities inside will be removed to keep the ped pool as empty as possible.`}),`\n`,_jsx(Heading,{level:`3`,id:`configuration-parameters-2`,children:`Configuration parameters`}),`\n`,_jsx(Heading,{level:`4`,id:`spawncooldown`,children:`spawnCooldown`}),`\n`,_jsx(_components.p,{children:`Entitis will be re-spawned after the amount of time specified in the cooldown timer. This can happen when they get killed or removed to avoid too frequent spawn/despawn.`}),`\n`,_jsx(Heading,{level:`4`,id:`chunkupdaterate`,children:`chunkUpdateRate`}),`\n`,_jsx(_components.p,{children:`How frequently chunks will be updated, affects the performance significantly. Unless you know what you’re really doing don’t change this setting.`}),`\n`,_jsx(Heading,{level:`4`,id:`maxchunkpop`,children:`maxChunkPop`}),`\n`,_jsx(_components.p,{children:`Max number of entities inside a chunk.`}),`\n`,_jsx(Heading,{level:`4`,id:`chunkpopulation`,children:`chunkPopulation`}),`\n`,_jsx(_components.p,{children:`Table defining which and the probability of entities that will be spawned inside a chunk.\nExample:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`lua`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`lua`,children:_jsxs(_components.code,{language:`lua`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`chunkPopulation`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` -- ['entityType'] = probability [0.0, 1.0]`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'infect1'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0.9`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`-- 90% probability that it will spawn`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'gunslinger'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0.1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})}),`\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":"Worldwide.lua","icon":"globe","description":null,"href":"/scripts/entities/configuration/worldwide","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Worldwide Systems","slug":"worldwide-systems","depth":1,"children":[]},{"title":"Replacement System","slug":"replacement-system","depth":2,"children":[{"title":"Configuration parameters","slug":"configuration-parameters","depth":3,"children":[]},{"title":"Enabled","slug":"enabled","depth":4,"children":[]},{"title":"replaceWith","slug":"replacewith","depth":4,"children":[]},{"title":"inVehicle","slug":"invehicle","depth":4,"children":[]},{"title":"onHorse","slug":"onhorse","depth":4,"children":[]},{"title":"debug","slug":"debug","depth":4,"children":[]}]},{"title":"Worldgrid System","slug":"worldgrid-system","depth":2,"children":[{"title":"How it works","slug":"how-it-works","depth":3,"children":[]},{"title":"Configuration parameters","slug":"configuration-parameters-2","depth":3,"children":[]},{"title":"spawnCooldown","slug":"spawncooldown","depth":4,"children":[]},{"title":"chunkUpdateRate","slug":"chunkupdaterate","depth":4,"children":[]},{"title":"maxChunkPop","slug":"maxchunkpop","depth":4,"children":[]},{"title":"chunkPopulation","slug":"chunkpopulation","depth":4,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"megaworks","siteName":"MegaWorks Documentation","title":"Worldwide.lua - MegaWorks Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-08T20:24:07.995Z","originalFileLocation":"scripts/entities/configuration/worldwide.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=\"Worldwide.lua - 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/entities/configuration/worldwide\">\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=Configuration\u0026amp;title=Worldwide.lua\u0026amp;theme=9643f30bb6c7e0444b4adb67\u0026amp;signature=15ca5166876152b3f22977de69749c7ad6c2d2ca5a948d2709e06deca9c92850\">\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=\"Worldwide.lua - MegaWorks Documentation\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://megaworks.mintlify.site/_mintlify/api/og/v2?division=Configuration\u0026amp;title=Worldwide.lua\u0026amp;theme=9643f30bb6c7e0444b4adb67\u0026amp;signature=15ca5166876152b3f22977de69749c7ad6c2d2ca5a948d2709e06deca9c92850\">\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/entities/configuration/worldwide\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/scripts/entities/configuration/worldwide.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/entities/configuration/worldwide#webpage\",\"url\":\"https://docs.megaworks.dev/scripts/entities/configuration/worldwide\",\"name\":\"Worldwide.lua\",\"dateModified\":\"2026-03-08T20:24:07.995Z\",\"isPartOf\":{\"@id\":\"https://docs.megaworks.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.megaworks.dev/scripts/entities/configuration/worldwide#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.megaworks.dev/scripts/entities/configuration/worldwide#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Mega Entities\",\"item\":\"https://docs.megaworks.dev/scripts/entities/configuration/groups\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configuration\",\"item\":\"https://docs.megaworks.dev/scripts/entities/configuration/groups\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Worldwide.lua\",\"item\":\"https://docs.megaworks.dev/scripts/entities/configuration/worldwide\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.megaworks.dev/scripts/entities/configuration/worldwide#article\",\"headline\":\"Worldwide.lua\",\"name\":\"Worldwide.lua\",\"url\":\"https://docs.megaworks.dev/scripts/entities/configuration/worldwide\",\"mainEntityOfPage\":{\"@id\":\"https://docs.megaworks.dev/scripts/entities/configuration/worldwide#webpage\"},\"dateModified\":\"2026-03-08T20:24:07.995Z\",\"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/entities/configuration/worldwide.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","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","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","description":null,"href":"/scripts/entities/configuration/safezones"},{"title":"Worldwide.lua","icon":"globe","href":"/scripts/entities/configuration/worldwide"},{"title":"Zones.lua","icon":"map-location-dot","description":null,"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":"Worldwide.lua - MegaWorks Documentation","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":[],"chunks":[]}