[{"data":1,"prerenderedAt":412},["ShallowReactive",2],{"/docs/jobs/mechanicjob/installation":3,"/docs/jobs/mechanicjob/installation-surround":401},{"id":4,"title":5,"body":6,"description":391,"extension":392,"head":393,"meta":394,"navigation":395,"path":396,"schemaOrg":393,"seo":397,"sitemap":398,"stem":399,"__hash__":400},"docs/1.docs/0.jobs/2.mechanicjob/1.installation.md","Installation",{"type":7,"value":8,"toc":385},"minimark",[9,14,369,373,376],[10,11,13],"h2",{"id":12},"setup-checklist","Setup Checklist",[15,16,17,26,33,39,43,47,54,78,82,99,103,112,115,212,216,231,235,250,262,272,282,286,307,311,320,324,331],"steps",{},[18,19,21,22],"h3",{"id":20},"install-or-update-sky_base","Install or Update ",[23,24,25],"code",{},"sky_base",[27,28,29,30,32],"p",{},"Download the ",[23,31,25],{}," package from the same CFX Portal account as the Mechanic Job, then install or update it on your server.",[18,34,21,36],{"id":35},"install-or-update-sky_jobs_base",[23,37,38],{},"sky_jobs_base",[27,40,29,41,32],{},[23,42,38],{},[18,44,46],{"id":45},"import-the-sql","Import the SQL",[27,48,49,50,53],{},"Run the included ",[23,51,52],{},"import.sql"," against your server database. This creates the tuning persistence, tuning-order, vehicle profile, and vehicle history tables:",[55,56,57,63,68,73],"ul",{},[58,59,60],"li",{},[23,61,62],{},"sky_mechanic_vehicle_tuning",[58,64,65],{},[23,66,67],{},"sky_mechanic_tuning_orders",[58,69,70],{},[23,71,72],{},"sky_mechanic_vehicle_profiles",[58,74,75],{},[23,76,77],{},"sky_mechanic_vehicle_history",[18,79,81],{"id":80},"deploy-the-script","Deploy the Script",[27,83,84,85,88,89,92,93,95,96,98],{},"Place the ",[23,86,87],{},"sky_mechanicjob"," resource inside your server files, add it to ",[23,90,91],{},"server.cfg",", and ensure it starts after your framework, inventories, target, ",[23,94,25],{},", and ",[23,97,38],{},".",[18,100,102],{"id":101},"add-mechanic-items","Add Mechanic Items",[27,104,105,106,111],{},"Add the required mechanic items to your inventory script. For ready-to-copy examples, see the ",[107,108,110],"a",{"href":109},"./inventories","Inventory Items"," page.",[27,113,114],{},"Required tuning / service items:",[55,116,117,122,127,132,137,142,147,152,157,162,167,172,177,182,187,192,197,202,207],{},[58,118,119],{},[23,120,121],{},"body_kit",[58,123,124],{},[23,125,126],{},"wheels",[58,128,129],{},[23,130,131],{},"spray_can",[58,133,134],{},[23,135,136],{},"engine",[58,138,139],{},[23,140,141],{},"brakes",[58,143,144],{},[23,145,146],{},"transmission",[58,148,149],{},[23,150,151],{},"turbo",[58,153,154],{},[23,155,156],{},"antilag_kit",[58,158,159],{},[23,160,161],{},"suspension",[58,163,164],{},[23,165,166],{},"armor_plating",[58,168,169],{},[23,170,171],{},"stance_kit",[58,173,174],{},[23,175,176],{},"nitro_kit",[58,178,179],{},[23,180,181],{},"spark_plugs",[58,183,184],{},[23,185,186],{},"engine_oil",[58,188,189],{},[23,190,191],{},"engine_coolant",[58,193,194],{},[23,195,196],{},"brake_fluid",[58,198,199],{},[23,200,201],{},"transmission_fluid",[58,203,204],{},[23,205,206],{},"air_filter",[58,208,209],{},[23,210,211],{},"rgb_controller",[18,213,215],{"id":214},"zero-the-job-salaries","Zero the Job Salaries",[27,217,218,219,222,223,226,227,230],{},"In your database, open the ",[23,220,221],{},"job_grades"," table and set every salary entry for the ",[23,224,225],{},"mechanic"," job to ",[23,228,229],{},"0",". Our script handles salary payouts internally, and leaving framework salaries enabled will cause duplicate payments.",[18,232,234],{"id":233},"grant-admin-set-up-the-boss","Grant admin + set up the boss",[27,236,237,238,241,242,245,246,111],{},"Before admin commands like ",[23,239,240],{},"/workshopcreator"," or ",[23,243,244],{},"/admintuning"," will work, you need an admin group in your framework. Follow the framework-specific steps on the ",[107,247,249],{"href":248},"./permissions","Permissions",[27,251,252,253,256,257,261],{},"Once you have admin, run ",[23,254,255],{},"/setboss"," ",[258,259,260],"strong",{},"once"," to grant every boss permission to your highest mechanic grade, for example:",[263,264,269],"pre",{"className":265,"code":267,"language":268},[266],"language-text","/setboss mechanic 4\n","text",[23,270,267],{"__ignoreMap":271},"",[27,273,274,275,278,279,98],{},"Replace ",[23,276,277],{},"4"," with the top grade configured for your mechanic job. This only needs to run after a fresh install or after wiping ",[23,280,281],{},"sky_job_permissions",[18,283,285],{"id":284},"optional-migrate-existing-tuning-data","Optional: Migrate Existing Tuning Data",[27,287,288,289,292,293,296,297,300,301,304,305,98],{},"If you are moving from a previous mechanic script such as ",[23,290,291],{},"jg-mechanic",", run ",[23,294,295],{},"/migrate"," once as an admin after the resource and database are installed. The command imports supported tuning data from existing vehicle tables such as ",[23,298,299],{},"owned_vehicles"," and ",[23,302,303],{},"mechanic_vehicledata"," into ",[23,306,62],{},[18,308,310],{"id":309},"place-workshops","Place Workshops",[27,312,313,314,316,317,319],{},"Restart the server and run ",[23,315,240],{}," as an admin. This opens the workshop creator from ",[23,318,38],{},", where you can place duty, garage, shop, stash, self-service tuning, engine hoists, workshop lifts, and other mechanic interaction points defined by the resource.",[18,321,323],{"id":322},"review-the-config","Review the Config",[27,325,326,327,330],{},"Open ",[23,328,329],{},"sky_mechanicjob/config/config.lua"," and verify these sections before going live:",[55,332,333,339,345,357,363],{},[58,334,335,338],{},[23,336,337],{},"Config.Jobs"," for mechanic factions, shop items, and job vehicles",[58,340,341,344],{},[23,342,343],{},"Config.OrderRequiredItems"," for which item each tuning category consumes or checks",[58,346,347,350,351,95,354],{},[23,348,349],{},"Config.Nitro",", ",[23,352,353],{},"Config.AntiLag",[23,355,356],{},"Config.TwoStep",[58,358,359,362],{},[23,360,361],{},"Config.Wear.parts"," for mileage-based part wear and repair requirements",[58,364,365,368],{},[23,366,367],{},"Config.CommandPermissions"," if you want different groups for admin/debug commands",[10,370,372],{"id":371},"support","Support",[27,374,375],{},"Need help? Our support team is always ready to assist",[377,378],"u-button",{"color":379,"icon":380,"label":381,"target":382,"to":383,"variant":384},"neutral","i-simple-icons-discord","Join Discord","_blank","https://discord.gg/sky-systems","subtle",{"title":271,"searchDepth":386,"depth":387,"links":388},1,2,[389,390],{"id":12,"depth":387,"text":13},{"id":371,"depth":387,"text":372},"Follow these steps to prepare your server for the Sky Mechanic Job script, from dependencies and SQL import to workshop placement.","md",null,{},true,"/docs/jobs/mechanicjob/installation",{"title":5,"description":391},{"loc":396},"1.docs/0.jobs/2.mechanicjob/1.installation","CCnBZiZo2DxLiVA-AYKuYy4kCFs4HkG6xTI5kWraIbU",[402,408],{"title":403,"path":404,"stem":405,"description":406,"icon":407,"children":-1},"Changelog","/docs/jobs/policejob/changelog","1.docs/0.jobs/1.policejob/6.changelog","Full change history for Sky Police Job (BETA).","i-lucide-history",{"title":249,"path":409,"stem":410,"description":411,"children":-1},"/docs/jobs/mechanicjob/permissions","1.docs/0.jobs/2.mechanicjob/2.permissions","Grant admin access so mechanic admin commands and the workshop creator work in your framework.",1776765825128]