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