This is designed to attempt to fix injection detections and certain native executions, NOT completely bypass native calls like CreateVehicle, etc.
Lean provides two simulation methods for injecting code into a resource context. Both aim to reduce detection risk, but differ in reliability and execution consistency/methodology.
Use Simulate1 when prioritizing maximum injection detection avoidance and safety when calling certain natives or funcs
Use Simulate2 when you need consistent execution and are unlikely to fail, although certain detections can occur due to this being the less safe method.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Lean Documentation","colors":{"primary":"#16A34A","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/leanmenu-9bdd52a9/_UCp_V33VgwAgbhL/imgs/logo.svg?fit=max\u0026auto=format\u0026n=_UCp_V33VgwAgbhL\u0026q=85\u0026s=fc7a79ce29c65b214708f75151e8ed17","dark":"https://mintcdn.com/leanmenu-9bdd52a9/_UCp_V33VgwAgbhL/imgs/logo.svg?fit=max\u0026auto=format\u0026n=_UCp_V33VgwAgbhL\u0026q=85\u0026s=fc7a79ce29c65b214708f75151e8ed17"},"favicon":"https://mintcdn.com/leanmenu-9bdd52a9/_UCp_V33VgwAgbhL/imgs/favicon.svg?fit=max\u0026auto=format\u0026n=_UCp_V33VgwAgbhL\u0026q=85\u0026s=d7b4637e3a142e8e4e879622a206f66c","navbar":{},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"leanmenu-9bdd52a9","hasAudioNarration":false,"actualSubdomain":"leanmenu-9bdd52a9","customDomains":["docs.leanmenu.cc"],"gitSource":{"type":"github","owner":"kutthroatbusiness","repo":"docs","deployBranch":"main","isPrivate":true,"contentDirectory":"","mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aa066dcaf957111227c2cfa","collectionId":"d2ee6e1c-aee6-458c-97a2-2d959b38a28d","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aa066dcaf957111227c2cfa"},"entitlements":{},"buildId":"6aa066dcaf957111227c2cfa","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"Lean API Reference","count":5},{"language":"default","tag":"Welcome","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"editor-v7-file-tree","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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"page/custom.css","content":"#content-side-layout,#flex items-center,#footer,#table-of-contents,#table-of-contents-layout,footer{display:none!important}#mint-content{opacity:1;transition:opacity .5s ease-in-out}#mint-content.fade-out{opacity:0}"}],"page":{"pagePath":"page/simulate","slug":"/page/simulate","pageMetadata":{"title":"π | Resource Simulation","description":"Safely inject code into resources","href":"/page/simulate"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Safely inject code into resources\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"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`,hr:`hr`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Warning,{children:_jsxs(_components.p,{children:[`This is designed to attempt to fix injection detections and certain native executions, NOT completely bypass native calls like `,_jsx(_components.code,{children:`CreateVehicle`}),`, etc.`]})}),`\n`,_jsx(_components.p,{children:`Lean provides two simulation methods for injecting code into a resource context. Both aim to reduce detection risk, but differ in reliability and execution consistency/methodology.`}),`\n`,_jsx(Heading,{level:`2`,id:`simulate1-safer-but-less-reliable-successful-injections`,children:`Simulate1 (Safer, but less reliable successful injections)`}),`\n`,_jsx(_components.p,{children:`Execute code within a specific resource context using method 1.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`LeanAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Simulate1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`resourceName`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`code`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`parameters`,children:`Parameters`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`resourceName`}),` (string) β Name of the target resource, or βanyβ to target a random found injectable resource`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`code`}),` (string) β Lua code to execute inside the resource context`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`returns`,children:`Returns`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Nothing`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`example`,children:`Example`}),`\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:`LeanAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Simulate1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"lean\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`[[`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` print(\"wow we injected into \" .. GetCurrentResourceName() .. \" using method 1\")`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`]]`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`simulate2-more-reliable-recommended-for-stability`,children:`Simulate2 (More reliable, recommended for stability)`}),`\n`,_jsx(_components.p,{children:`Execute code within a specific resource context using method 2.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`LeanAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Simulate2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`resourceName`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`code`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`parameters-2`,children:`Parameters`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`resourceName`}),` (string) β Name of the target resource, or βanyβ to target a random found injectable resource`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`code`}),` (string) β Lua code to execute inside the resource context`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`returns-2`,children:`Returns`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Nothing`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`example-2`,children:`Example`}),`\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:`LeanAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Simulate2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"lean\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`[[`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` print(\"hi \" .. GetPlayerName(PlayerId()) .. \" we injected into \" .. GetCurrentResourceName())`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`]]`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`key-differences`,children:`Key Differences`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Safety Level`}),_jsx(_components.th,{children:`Successful Injection Reliability`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Simulate1`}),_jsx(_components.td,{children:`Higher`}),_jsx(_components.td,{children:`Lower`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Simulate2`}),_jsx(_components.td,{children:`High`}),_jsx(_components.td,{children:`Higher`})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`recommendation`,children:`Recommendation`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Use `,_jsx(_components.strong,{children:`Simulate1`}),` when prioritizing `,_jsx(_components.strong,{children:`maximum injection detection avoidance and safety when calling certain natives or funcs`})]}),`\n`,_jsxs(_components.li,{children:[`Use `,_jsx(_components.strong,{children:`Simulate2`}),` when you need `,_jsx(_components.strong,{children:`consistent execution and are unlikely to fail, although certain detections can occur due to this being the less safe method.`})]}),`\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":"π | Resource Simulation","description":"Safely inject code into resources","href":"/page/simulate"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Simulate1 (Safer, but less reliable successful injections)","slug":"simulate1-safer-but-less-reliable-successful-injections","depth":2,"children":[{"title":"Parameters","slug":"parameters","depth":3,"children":[]},{"title":"Returns","slug":"returns","depth":3,"children":[]},{"title":"Example","slug":"example","depth":3,"children":[]}]},{"title":"Simulate2 (More reliable, recommended for stability)","slug":"simulate2-more-reliable-recommended-for-stability","depth":2,"children":[{"title":"Parameters","slug":"parameters-2","depth":3,"children":[]},{"title":"Returns","slug":"returns-2","depth":3,"children":[]},{"title":"Example","slug":"example-2","depth":3,"children":[]}]},{"title":"Key Differences","slug":"key-differences","depth":2,"children":[]},{"title":"Recommendation","slug":"recommendation","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/leanmenu-9bdd52a9/9869ff74274b14d8/page/fade.js"],"subdomain":"leanmenu-9bdd52a9","siteName":"Lean Documentation","title":"π | Resource Simulation - Lean Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-19T17:11:43.846Z","originalFileLocation":"page/simulate.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=\"description\" content=\"Safely inject code into resources\">\u003cmeta data-mint-head name=\"application-name\" content=\"Lean 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/leanmenu-9bdd52a9/sxSkO3wtf0rrrVy1/_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/leanmenu-9bdd52a9/sxSkO3wtf0rrrVy1/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/leanmenu-9bdd52a9/sxSkO3wtf0rrrVy1/_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/leanmenu-9bdd52a9/sxSkO3wtf0rrrVy1/_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/leanmenu-9bdd52a9/sxSkO3wtf0rrrVy1/_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/leanmenu-9bdd52a9/sxSkO3wtf0rrrVy1/_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/leanmenu-9bdd52a9/sxSkO3wtf0rrrVy1/_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/leanmenu-9bdd52a9/sxSkO3wtf0rrrVy1/_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/leanmenu-9bdd52a9/sxSkO3wtf0rrrVy1/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"π | Resource Simulation - Lean Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Safely inject code into resources\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Lean Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.leanmenu.cc/page/simulate\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://leanmenu-9bdd52a9.mintlify.app/_mintlify/api/og/v2?division=Lean+API+Reference\u0026amp;title=%F0%9F%92%89+%7C+Resource+Simulation\u0026amp;description=Safely+inject+code+into+resources\u0026amp;theme=cad79026370a76d2326f7dab\u0026amp;signature=4bc50ba82a8947c19f75916cf88b57f8aee77fbbf98166e43dbdabf60f7f4b9e\">\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=\"π | Resource Simulation - Lean Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Safely inject code into resources\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://leanmenu-9bdd52a9.mintlify.app/_mintlify/api/og/v2?division=Lean+API+Reference\u0026amp;title=%F0%9F%92%89+%7C+Resource+Simulation\u0026amp;description=Safely+inject+code+into+resources\u0026amp;theme=cad79026370a76d2326f7dab\u0026amp;signature=4bc50ba82a8947c19f75916cf88b57f8aee77fbbf98166e43dbdabf60f7f4b9e\">\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/leanmenu-9bdd52a9/sxSkO3wtf0rrrVy1/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Lean Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.leanmenu.cc/page/simulate\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/page/simulate.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.leanmenu.cc/#organization\",\"name\":\"Lean Documentation\",\"url\":\"https://docs.leanmenu.cc\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/leanmenu-9bdd52a9/_UCp_V33VgwAgbhL/imgs/logo.svg?fit=max\u0026auto=format\u0026n=_UCp_V33VgwAgbhL\u0026q=85\u0026s=fc7a79ce29c65b214708f75151e8ed17\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.leanmenu.cc#website\",\"name\":\"Lean Documentation\",\"url\":\"https://docs.leanmenu.cc\",\"publisher\":{\"@id\":\"https://docs.leanmenu.cc/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.leanmenu.cc/page/simulate#webpage\",\"url\":\"https://docs.leanmenu.cc/page/simulate\",\"name\":\"π | Resource Simulation\",\"description\":\"Safely inject code into resources\",\"dateModified\":\"2026-06-19T17:11:43.846Z\",\"isPartOf\":{\"@id\":\"https://docs.leanmenu.cc#website\"},\"breadcrumb\":{\"@id\":\"https://docs.leanmenu.cc/page/simulate#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.leanmenu.cc/page/simulate#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Lean API Reference\",\"item\":\"https://docs.leanmenu.cc/page/notifications\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"π | Resource Simulation\",\"item\":\"https://docs.leanmenu.cc/page/simulate\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.leanmenu.cc/page/simulate#article\",\"headline\":\"π | Resource Simulation\",\"name\":\"π | Resource Simulation\",\"description\":\"Safely inject code into resources\",\"url\":\"https://docs.leanmenu.cc/page/simulate\",\"mainEntityOfPage\":{\"@id\":\"https://docs.leanmenu.cc/page/simulate#webpage\"},\"dateModified\":\"2026-06-19T17:11:43.846Z\",\"publisher\":{\"@id\":\"https://docs.leanmenu.cc/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.leanmenu.cc#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Lean Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Lean Documentation","nav":{"global":null,"pages":[{"group":"Welcome","pages":[{"title":"π¨ | Introduction","href":"/index"}]},{"group":"Lean API Reference","pages":[{"title":"π | Notifications","href":"/page/notifications"},{"title":"π | Events","href":"/page/events"},{"title":"β¨οΈ | Custom Input Text Box","description":"Creates and draws leans input box","href":"/page/textbox"},{"title":"π | Resource Simulation","href":"/page/simulate"},{"title":"π€ | User Information","description":"Utilize user information connected to Lean","href":"/page/user"}]}]},"title":"π | Resource Simulation - Lean Documentation","buildId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","deploymentId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","dynamics":[],"chunks":[]}