[{"data":1,"prerenderedAt":331},["ShallowReactive",2],{"/docs/jobs/crimesystem/setup/installation":3,"/docs/jobs/crimesystem/setup/installation-surround":319,"/docs/jobs/crimesystem/setup/installation-implemented-suggestions":330},{"id":4,"title":5,"body":6,"description":309,"extension":310,"head":311,"implementedSuggestions":311,"meta":312,"navigation":313,"path":314,"schemaOrg":311,"seo":315,"sitemap":316,"stem":317,"__hash__":318},"docs/1.docs/0.jobs/4.crimesystem/2.setup/1.installation.md","Installation",{"type":7,"value":8,"toc":303},"minimark",[9,14,18,36,39,48,52,198,202,209,269,280,284,291,299],[10,11,13],"h2",{"id":12},"what-you-need","What you need",[15,16,17],"p",{},"Crime System supports ESX, QBCore, and Qbox. You also need:",[19,20,21,28,33],"ul",{},[22,23,24],"li",{},[25,26,27],"code",{},"sky_base",[22,29,30],{},[25,31,32],{},"sky_jobs_base",[22,34,35],{},"Your working framework, database, inventory, and targeting setup.",[15,37,38],{},"Keep the Sky resources up to date together. Police Job, Ambulance Job, and Fire Job add optional integrations; they are not required to install Crime System.",[15,40,41,42,47],{},"For download, license, or general server setup help, use the ",[43,44,46],"a",{"href":45},"/docs/installation","Installation Guide",".",[10,49,51],{"id":50},"installation-steps","Installation steps",[53,54,55,60,71,75,82,111,121,125,128,131,135,143,146,150,158,162,173,190],"steps",{},[56,57,59],"h3",{"id":58},"add-the-resource","Add the resource",[15,61,62,63,66,67,70],{},"Copy the ",[25,64,65],{},"sky_crimesystem"," folder into your server's resources directory. This is the folder containing ",[25,68,69],{},"fxmanifest.lua",". Do not rename it.",[56,72,74],{"id":73},"set-the-start-order","Set the start order",[15,76,77,78,81],{},"Add these lines to your ",[25,79,80],{},"server.cfg",", after your framework, database, inventory, and targeting resources:",[83,84,89],"pre",{"className":85,"code":86,"filename":80,"language":87,"meta":88,"style":88},"language-cfg shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","ensure sky_base\nensure sky_jobs_base\nensure sky_crimesystem\n","cfg","",[25,90,91,99,105],{"__ignoreMap":88},[92,93,96],"span",{"class":94,"line":95},"line",1,[92,97,98],{},"ensure sky_base\n",[92,100,102],{"class":94,"line":101},2,[92,103,104],{},"ensure sky_jobs_base\n",[92,106,108],{"class":94,"line":107},3,[92,109,110],{},"ensure sky_crimesystem\n",[15,112,113,114,120],{},"The ",[43,115,119],{"href":116,"rel":117},"https://docs.fivem.net/docs/server-manual/server-commands/#ensure-resourcename",[118],"nofollow","FiveM server commands reference"," explains the start command if you need more detail.",[56,122,124],{"id":123},"leave-automatic-database-setup-enabled","Leave automatic database setup enabled",[15,126,127],{},"The normal installation creates and updates its database tables automatically. Keep the shipped database settings enabled.",[15,129,130],{},"You do not need to manually import Crime's table schema for this setup. Your inventory may still need its separate item import in the next step. If the console reports a database error when the server starts, resolve it before continuing.",[56,132,134],{"id":133},"prepare-the-items","Prepare the items",[15,136,137,138,142],{},"Open ",[43,139,141],{"href":140},"/docs/jobs/crimesystem/reference/inventory-items","Inventory Items",". It contains all 155 default items and complete ox_inventory and ESX import blocks. Choose the format for your active inventory and add the missing entries.",[15,144,145],{},"The Drug Creator attempts to add its items automatically. Check the server console for missing-item warnings and add any missing items to your inventory.",[56,147,149],{"id":148},"give-yourself-setup-access","Give yourself setup access",[15,151,152,153,157],{},"Follow ",[43,154,156],{"href":155},"/docs/jobs/crimesystem/setup/permissions","Permissions"," to configure your administrator group. You will check the commands after starting the server.",[56,159,161],{"id":160},"start-the-server","Start the server",[15,163,164,165,168,169,47],{},"Check the console for errors, then open ",[25,166,167],{},"/jobconfig"," and select ",[170,171,172],"strong",{},"Crime System",[15,174,175,178,179,181,182,185,186,189],{},[170,176,177],{},"Check:"," ",[25,180,167],{},", ",[25,183,184],{},"/drugcreator",", and ",[25,187,188],{},"/heistcreator"," all open for your administrator. Resolve startup errors or missing permissions before creating your organization.",[15,191,192,193,197],{},"Continue with ",[43,194,196],{"href":195},"/docs/jobs/crimesystem/setup/first-setup","First Setup"," to prepare your organization and its activities.",[10,199,201],{"id":200},"if-you-manage-database-setup-manually","If you manage database setup manually",[15,203,204,205,208],{},"The database switches are in ",[25,206,207],{},"config/config.lua",":",[210,211,212,225],"table",{},[213,214,215],"thead",{},[216,217,218,222],"tr",{},[219,220,221],"th",{},"Setting",[219,223,224],{},"Controls",[226,227,228,239,249,259],"tbody",{},[216,229,230,236],{},[231,232,233],"td",{},[25,234,235],{},"Config.AutoExecuteQuery",[231,237,238],{},"Main Crime tables",[216,240,241,246],{},[231,242,243],{},[25,244,245],{},"Config.HeistPersistence.enabled",[231,247,248],{},"Saving heist definitions and plans",[216,250,251,256],{},[231,252,253],{},[25,254,255],{},"Config.HeistPersistence.autoMigrate",[231,257,258],{},"Automatic setup of the heist tables",[216,260,261,266],{},[231,262,263],{},[25,264,265],{},"Config.PvPEvents.autoMigrate",[231,267,268],{},"Automatic setup of faction event tables",[15,270,271,272,275,276,279],{},"The supplied ",[25,273,274],{},"import.sql"," includes the main Crime and PvP tables, but ",[170,277,278],{},"not the separate heist tables",". Keep heist auto-migration enabled unless you maintain those tables yourself.",[10,281,283],{"id":282},"before-updating-later","Before updating later",[15,285,286,287,290],{},"Back up the database and your customized ",[25,288,289],{},"config"," folder. The database stores your setup and player progress, including owned laboratories, plants, stock, and heist plans.",[15,292,293,294,298],{},"Also keep copies of edited heist files and exports. Follow ",[43,295,297],{"href":296},"/docs/guide/updates-backups","Updates and Backups",", then test the features affected by the update.",[300,301,302],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":88,"searchDepth":95,"depth":101,"links":304},[305,306,307,308],{"id":12,"depth":101,"text":13},{"id":50,"depth":101,"text":51},{"id":200,"depth":101,"text":201},{"id":282,"depth":101,"text":283},"Install the required resources, prepare inventory items, and open the Crime System setup.","md",null,{},true,"/docs/jobs/crimesystem/setup/installation",{"title":5,"description":309},{"loc":314},"1.docs/0.jobs/4.crimesystem/2.setup/1.installation","5Roc06IHxKbwP6Y_zODNUmfwe5iRxsyqppuo6j1hNl0",[320,325],{"title":321,"path":322,"stem":323,"description":324,"children":-1},"Overview","/docs/jobs/crimesystem/overview","1.docs/0.jobs/4.crimesystem/1.overview","Set up Crime System for your server, from your first organization to working heists, drugs, and other criminal activities.",{"title":326,"path":327,"stem":328,"description":329,"children":-1},"Configuration","/docs/jobs/crimesystem/setup/configuration","1.docs/0.jobs/4.crimesystem/2.setup/2.configuration","Know where to change each setting and why an edited config file may not change an existing server.",[],1789075920115]