[{"data":1,"prerenderedAt":298},["ShallowReactive",2],{"/docs/guide/common-console-errors":3,"/docs/guide/common-console-errors-surround":285},{"id":4,"title":5,"body":6,"description":274,"extension":275,"head":276,"meta":277,"navigation":278,"path":280,"schemaOrg":276,"seo":281,"sitemap":282,"stem":283,"__hash__":284},"docs/1.docs/1.guide/6.common-console-errors.md","Common Console Errors",{"type":7,"value":8,"toc":263},"minimark",[9,13,18,21,32,35,38,54,58,60,66,69,71,89,93,95,101,104,107,124,128,130,136,139,141,158,162,164,170,172,192,196,198,204,211,213,245,249,251,257,260],[10,11,12],"p",{},"Console errors often look more complicated than they are. Start by finding the first error after the resource restart. Later errors are often only follow-up errors.",[14,15,17],"h2",{"id":16},"config-syntax-error","Config Syntax Error",[10,19,20],{},"Example:",[22,23,29],"pre",{"className":24,"code":26,"language":27,"meta":28},[25],"language-text","SCRIPT ERROR: @sky_ambulancejob/config/config.lua:120: '}' expected near 'name'\n","text","",[30,31,26],"code",{"__ignoreMap":28},[10,33,34],{},"This usually means the Lua config has a missing comma, missing bracket, or broken quote around the shown line.",[10,36,37],{},"What to do:",[39,40,41,45,48,51],"ul",{},[42,43,44],"li",{},"Open the file and line from the error.",[42,46,47],{},"Check the lines above it too.",[42,49,50],{},"Compare the edited file with a fresh original config.",[42,52,53],{},"Fix missing commas, quotes, or closing braces.",[14,55,57],{"id":56},"nil-config-tables","Nil Config Tables",[10,59,20],{},[22,61,64],{"className":62,"code":63,"language":27,"meta":28},[25],"attempt to index a nil value (field 'ToggleFeatures')\nattempt to index a nil value (global 'Locales')\nbad argument #1 to 'for iterator' (table expected, got nil)\n",[30,65,63],{"__ignoreMap":28},[10,67,68],{},"This usually means an earlier config error stopped the config from loading. Required tables were never created, so other files fail afterward.",[10,70,37],{},[39,72,73,76,79,86],{},[42,74,75],{},"Scroll up to the first error from the same resource.",[42,77,78],{},"Check the last config file you edited.",[42,80,81,82,85],{},"Restore missing sections such as ",[30,83,84],{},"Config.ToggleFeatures",".",[42,87,88],{},"Do not only fix the final error shown in the console.",[14,90,92],{"id":91},"no-such-export","No Such Export",[10,94,20],{},[22,96,99],{"className":97,"code":98,"language":27,"meta":28},[25],"No such export GetPlayerData in resource sky_base\n",[30,100,98],{"__ignoreMap":28},[10,102,103],{},"This usually means a dependency is not started, started too late, renamed, outdated, or the wrong resource is being called.",[10,105,106],{},"What to check:",[39,108,109,115,118,121],{},[42,110,111,112,85],{},"The dependency exists in ",[30,113,114],{},"resources",[42,116,117],{},"The dependency starts before the script using it.",[42,119,120],{},"The resource folder was not renamed.",[42,122,123],{},"You are using compatible script versions.",[14,125,127],{"id":126},"missing-sql-table","Missing SQL Table",[10,129,20],{},[22,131,134],{"className":132,"code":133,"language":27,"meta":28},[25],"Table 'database.sky_jobs_patients' doesn't exist\n",[30,135,133],{"__ignoreMap":28},[10,137,138],{},"This means the SQL file was not imported or the wrong database is configured.",[10,140,37],{},[39,142,143,149,152,155],{},[42,144,145,146,85],{},"Import the resource's ",[30,147,148],{},"import.sql",[42,150,151],{},"Check the SQL resource and database name.",[42,153,154],{},"Restart the resource after importing SQL.",[42,156,157],{},"For updates, read the changelog for new SQL requirements.",[14,159,161],{"id":160},"entitlement-or-protected-resource-error","Entitlement Or Protected Resource Error",[10,163,20],{},[22,165,168],{"className":166,"code":167,"language":27,"meta":28},[25],"You lack the required entitlement to use sky_ambulancejob\nFailed to verify protected resource\n",[30,169,167],{"__ignoreMap":28},[10,171,106],{},[39,173,174,177,184,187,189],{},[42,175,176],{},"The server license key belongs to the same Keymaster account that owns the resource.",[42,178,179,180,183],{},"The resource folder contains the ",[30,181,182],{},".fxap"," file.",[42,185,186],{},"The resource was uploaded completely.",[42,188,120],{},[42,190,191],{},"Try downloading and uploading the resource again.",[14,193,195],{"id":194},"nui-or-ui-errors","NUI Or UI Errors",[10,197,20],{},[22,199,202],{"className":200,"code":201,"language":27,"meta":28},[25],"Failed to fetch NUI callback\nCannot read properties of undefined\n",[30,203,201],{"__ignoreMap":28},[10,205,206,207,210],{},"These usually appear in the client ",[30,208,209],{},"F8"," console.",[10,212,106],{},[39,214,215,221,224,227,233,236,239],{},[42,216,217,218,220],{},"Open ",[30,219,209],{}," and send the real client error.",[42,222,223],{},"Check the server console for callback errors.",[42,225,226],{},"The resource was built and uploaded completely.",[42,228,229,232],{},[30,230,231],{},"source/html/index.html"," and assets exist.",[42,234,235],{},"No client-side error appears before the UI opens.",[42,237,238],{},"The resource name was not changed.",[42,240,241,242,85],{},"Do not edit built UI files in ",[30,243,244],{},"source/html/",[14,246,248],{"id":247},"callback-errors","Callback Errors",[10,250,20],{},[22,252,255],{"className":253,"code":254,"language":27,"meta":28},[25],"ServerCallback \"sky_mechanicjob:partsDelivery:getReadyDeliveries\" ran into the following error\n",[30,256,254],{"__ignoreMap":28},[10,258,259],{},"The callback name is where the error happened, but the real cause is usually inside the lines after it. It can be a config error, SQL error, missing dependency, or missing table.",[10,261,262],{},"When reporting callback errors, send the full block, not only the callback name.",{"title":28,"searchDepth":264,"depth":265,"links":266},1,2,[267,268,269,270,271,272,273],{"id":16,"depth":265,"text":17},{"id":56,"depth":265,"text":57},{"id":91,"depth":265,"text":92},{"id":126,"depth":265,"text":127},{"id":160,"depth":265,"text":161},{"id":194,"depth":265,"text":195},{"id":247,"depth":265,"text":248},"Understand frequent FiveM and Sky-Systems console errors and what they usually mean.","md",null,{},{"icon":279},"i-lucide-terminal","/docs/guide/common-console-errors",{"title":5,"description":274},{"loc":280},"1.docs/1.guide/6.common-console-errors","NY92e5_L-SyHvQAdEGhw857d2-VtrYljw6IPYDprzbc",[286,292],{"title":287,"path":288,"stem":289,"description":290,"icon":291,"children":-1},"Reporting Issues","/docs/guide/reporting-issues","1.docs/1.guide/5.reporting-issues","What to include when reporting a bug or asking for support.","i-lucide-message-circle-warning",{"title":293,"path":294,"stem":295,"description":296,"icon":297,"children":-1},"Introduction","/docs/base/introduction","1.docs/base/1.introduction","sky_base is a crucial component for all Sky-Systems scripts, designed to enhance performance, streamline configuration, and provide a unified framework for easier management. This guide will introduce you to sky_base and walk you through its configuration and use.","i-lucide-info",1780173460103]