[{"data":1,"prerenderedAt":460},["ShallowReactive",2],{"/docs/jobs/policejob/api/client-events":3,"/docs/jobs/policejob/api/client-events-surround":447,"/docs/jobs/policejob/api/client-events-implemented-suggestions":459},{"id":4,"title":5,"body":6,"description":437,"extension":438,"head":439,"implementedSuggestions":439,"meta":440,"navigation":441,"path":442,"schemaOrg":439,"seo":443,"sitemap":444,"stem":445,"__hash__":446},"docs/1.docs/0.jobs/1.policejob/4.api/3.client-events.md","Client Events",{"type":7,"value":8,"toc":423},"minimark",[9,13,23,35,135,138,144,147,212,217,220,239,247,250,295,300,303,322,327,330,349,354,357,376,381,384,403,407,410,419],[10,11,5],"h2",{"id":12},"client-events",[14,15,16,17,22],"p",{},"These events can be triggered from other resources to interact with the police job on the client side. They mirror the ",[18,19,21],"a",{"href":20},"./client-exports","client exports"," for resources that prefer events over export calls.",[14,24,25,26,30,31,34],{},"The local player's job must already be registered through the server-side\n",[27,28,29],"code",{},"registerInteractionJobs"," export and have the required capability. Police jobs from ",[27,32,33],{},"Config.Jobs","\nare registered automatically. Triggering one of these events does not bypass the shared whitelist,\nduty policy, item checks, or server validation.",[36,37,38,51],"table",{},[39,40,41],"thead",{},[42,43,44,48],"tr",{},[45,46,47],"th",{},"Event",[45,49,50],{},"Description",[52,53,54,65,75,85,95,105,115,125],"tbody",{},[42,55,56,62],{},[57,58,59],"td",{},[27,60,61],{},"sky_policejob:client:cuffPlayer",[57,63,64],{},"Toggle the cuff state for the nearest player as an officer.",[42,66,67,72],{},[57,68,69],{},[27,70,71],{},"sky_policejob:client:uncuffPlayer",[57,73,74],{},"Remove cuffs from the nearest player as an officer.",[42,76,77,82],{},[57,78,79],{},[27,80,81],{},"sky_policejob:client:useCuffPlayer",[57,83,84],{},"Compatibility alias for the cuff action; uses the same whitelist.",[42,86,87,92],{},[57,88,89],{},[27,90,91],{},"sky_policejob:client:useUncuffPlayer",[57,93,94],{},"Compatibility alias for the uncuff action; uses the same whitelist.",[42,96,97,102],{},[57,98,99],{},[27,100,101],{},"sky_policejob:client:useHeadBag",[57,103,104],{},"Use a head bag on the nearest player through the shared whitelist.",[42,106,107,112],{},[57,108,109],{},[27,110,111],{},"sky_policejob:client:escortToggle",[57,113,114],{},"Start or stop escorting the nearest player.",[42,116,117,122],{},[57,118,119],{},[27,120,121],{},"sky_policejob:client:escortPutInVehicle",[57,123,124],{},"Put the escorted player into the closest vehicle.",[42,126,127,132],{},[57,128,129],{},[27,130,131],{},"sky_policejob:client:escortTakeOutVehicle",[57,133,134],{},"Take the escorted player out of a vehicle.",[136,137],"hr",{},[139,140,142],"h3",{"id":141},"sky_policejobclientcuffplayer",[27,143,61],{},[14,145,146],{},"Toggles the cuff state for the nearest player. Accepts an optional cuff type.",[148,149,155],"pre",{"className":150,"code":151,"filename":152,"language":153,"meta":154,"style":154},"language-lua shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","TriggerEvent(\"sky_policejob:client:cuffPlayer\") -- cuffs\nTriggerEvent(\"sky_policejob:client:cuffPlayer\", \"zipties\")\n","client.lua","lua","",[27,156,157,186],{"__ignoreMap":154},[158,159,162,166,170,174,177,179,182],"span",{"class":160,"line":161},"line",1,[158,163,165],{"class":164},"s2Zo4","TriggerEvent",[158,167,169],{"class":168},"sTEyZ","(",[158,171,173],{"class":172},"sMK4o","\"",[158,175,61],{"class":176},"sfazB",[158,178,173],{"class":172},[158,180,181],{"class":168},") ",[158,183,185],{"class":184},"sHwdD","-- cuffs\n",[158,187,189,191,193,195,197,199,202,204,207,209],{"class":160,"line":188},2,[158,190,165],{"class":164},[158,192,169],{"class":168},[158,194,173],{"class":172},[158,196,61],{"class":176},[158,198,173],{"class":172},[158,200,201],{"class":168},", ",[158,203,173],{"class":172},[158,205,206],{"class":176},"zipties",[158,208,173],{"class":172},[158,210,211],{"class":168},")\n",[139,213,215],{"id":214},"sky_policejobclientuncuffplayer",[27,216,71],{},[14,218,219],{},"Removes cuffs or zipties from the nearest player.",[148,221,223],{"className":150,"code":222,"filename":152,"language":153,"meta":154,"style":154},"TriggerEvent(\"sky_policejob:client:uncuffPlayer\")\n",[27,224,225],{"__ignoreMap":154},[158,226,227,229,231,233,235,237],{"class":160,"line":161},[158,228,165],{"class":164},[158,230,169],{"class":168},[158,232,173],{"class":172},[158,234,71],{"class":176},[158,236,173],{"class":172},[158,238,211],{"class":168},[139,240,242,244,245],{"id":241},"sky_policejobclientusecuffplayer-sky_policejobclientuseuncuffplayer",[27,243,81],{}," / ",[27,246,91],{},[14,248,249],{},"Compatibility aliases for the regular cuff and uncuff events. They use the same registered-job\naccess policy and server checks. Failures show a notification to the player.",[148,251,253],{"className":150,"code":252,"filename":152,"language":153,"meta":154,"style":154},"TriggerEvent(\"sky_policejob:client:useCuffPlayer\", \"cuffs\") -- or \"zipties\"\nTriggerEvent(\"sky_policejob:client:useUncuffPlayer\")\n",[27,254,255,281],{"__ignoreMap":154},[158,256,257,259,261,263,265,267,269,271,274,276,278],{"class":160,"line":161},[158,258,165],{"class":164},[158,260,169],{"class":168},[158,262,173],{"class":172},[158,264,81],{"class":176},[158,266,173],{"class":172},[158,268,201],{"class":168},[158,270,173],{"class":172},[158,272,273],{"class":176},"cuffs",[158,275,173],{"class":172},[158,277,181],{"class":168},[158,279,280],{"class":184},"-- or \"zipties\"\n",[158,282,283,285,287,289,291,293],{"class":160,"line":188},[158,284,165],{"class":164},[158,286,169],{"class":168},[158,288,173],{"class":172},[158,290,91],{"class":176},[158,292,173],{"class":172},[158,294,211],{"class":168},[139,296,298],{"id":297},"sky_policejobclientuseheadbag",[27,299,101],{},[14,301,302],{},"Uses a head bag on the nearest player through the shared registered-job access policy.",[148,304,306],{"className":150,"code":305,"filename":152,"language":153,"meta":154,"style":154},"TriggerEvent(\"sky_policejob:client:useHeadBag\")\n",[27,307,308],{"__ignoreMap":154},[158,309,310,312,314,316,318,320],{"class":160,"line":161},[158,311,165],{"class":164},[158,313,169],{"class":168},[158,315,173],{"class":172},[158,317,101],{"class":176},[158,319,173],{"class":172},[158,321,211],{"class":168},[139,323,325],{"id":324},"sky_policejobclientescorttoggle",[27,326,111],{},[14,328,329],{},"Starts or stops escorting the nearest player.",[148,331,333],{"className":150,"code":332,"filename":152,"language":153,"meta":154,"style":154},"TriggerEvent(\"sky_policejob:client:escortToggle\")\n",[27,334,335],{"__ignoreMap":154},[158,336,337,339,341,343,345,347],{"class":160,"line":161},[158,338,165],{"class":164},[158,340,169],{"class":168},[158,342,173],{"class":172},[158,344,111],{"class":176},[158,346,173],{"class":172},[158,348,211],{"class":168},[139,350,352],{"id":351},"sky_policejobclientescortputinvehicle",[27,353,121],{},[14,355,356],{},"Puts the currently escorted player into the closest vehicle.",[148,358,360],{"className":150,"code":359,"filename":152,"language":153,"meta":154,"style":154},"TriggerEvent(\"sky_policejob:client:escortPutInVehicle\")\n",[27,361,362],{"__ignoreMap":154},[158,363,364,366,368,370,372,374],{"class":160,"line":161},[158,365,165],{"class":164},[158,367,169],{"class":168},[158,369,173],{"class":172},[158,371,121],{"class":176},[158,373,173],{"class":172},[158,375,211],{"class":168},[139,377,379],{"id":378},"sky_policejobclientescorttakeoutvehicle",[27,380,131],{},[14,382,383],{},"Takes the escorted player out of a vehicle.",[148,385,387],{"className":150,"code":386,"filename":152,"language":153,"meta":154,"style":154},"TriggerEvent(\"sky_policejob:client:escortTakeOutVehicle\")\n",[27,388,389],{"__ignoreMap":154},[158,390,391,393,395,397,399,401],{"class":160,"line":161},[158,392,165],{"class":164},[158,394,169],{"class":168},[158,396,173],{"class":172},[158,398,131],{"class":176},[158,400,173],{"class":172},[158,402,211],{"class":168},[10,404,406],{"id":405},"support","Support",[14,408,409],{},"Need help? Our support team is always ready to assist",[411,412],"u-button",{"color":413,"icon":414,"label":415,"target":416,"to":417,"variant":418},"neutral","i-simple-icons-discord","Join Discord","_blank","https://discord.gg/sky-systems","subtle",[420,421,422],"style",{},"html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}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":154,"searchDepth":161,"depth":188,"links":424},[425,436],{"id":12,"depth":188,"text":5,"children":426},[427,429,430,432,433,434,435],{"id":141,"depth":428,"text":61},3,{"id":214,"depth":428,"text":71},{"id":241,"depth":428,"text":431},"sky_policejob:client:useCuffPlayer / sky_policejob:client:useUncuffPlayer",{"id":297,"depth":428,"text":101},{"id":324,"depth":428,"text":111},{"id":351,"depth":428,"text":121},{"id":378,"depth":428,"text":131},{"id":405,"depth":188,"text":406},"Client-side events provided by the Sky Police Job resource.","md",null,{},true,"/docs/jobs/policejob/api/client-events",{"title":5,"description":437},{"loc":442},"1.docs/0.jobs/1.policejob/4.api/3.client-events","SsDf1wBBF3ptoHZtKhhjUec-jZxxs6TY2l12OA9E9uc",[448,453],{"title":449,"path":450,"stem":451,"description":452,"children":-1},"Client Exports","/docs/jobs/policejob/api/client-exports","1.docs/0.jobs/1.policejob/4.api/2.client-exports","Client-side exports provided by the Sky Police Job resource.",{"title":454,"path":455,"stem":456,"description":457,"icon":458,"children":-1},"Changelog","/docs/jobs/policejob/changelog","1.docs/0.jobs/1.policejob/5.changelog","Full change history for Sky Police Job.","i-lucide-history",[],1785073560422]