[{"data":1,"prerenderedAt":434},["ShallowReactive",2],{"/docs/jobs/policejob/reference/exports/server-restraints":3,"/docs/jobs/policejob/reference/exports/server-restraints-surround":422,"/docs/jobs/policejob/reference/exports/server-restraints-implemented-suggestions":433},{"id":4,"title":5,"body":6,"description":412,"extension":413,"head":414,"implementedSuggestions":414,"meta":415,"navigation":416,"path":417,"schemaOrg":414,"seo":418,"sitemap":419,"stem":420,"__hash__":421},"docs/1.docs/0.jobs/1.policejob/4.reference/3.exports/3.server-restraints.md","Server: Restraints",{"type":7,"value":8,"toc":407},"minimark",[9,17,20,25,30,46,54,60,67,170,258,264,277,306,312,325,353,359,373,403],[10,11,12],"p",{},[13,14,16],"a",{"href":15},"/docs/jobs/policejob/reference/exports","All exports",[10,18,19],{},"This page documents the supported public integration calls. Client values are never authoritative for police permissions, review decisions, evidence, offences, or billing.",[21,22,24],"h2",{"id":23},"server-exports","Server Exports",[26,27,29],"h3",{"id":28},"restraints","Restraints",[10,31,32,33,37,38,41,42,45],{},"These are compatibility forwards to the shared ",[34,35,36],"code",{},"sky_jobs_base"," interaction system. Police jobs from\n",[34,39,40],{},"Config.Jobs"," are registered automatically. For any other job resource, call\n",[34,43,44],{},"registerInteractionJobs"," from a server script before using these exports. The acting player's job,\nduty policy, target distance/state, and configured item requirements are validated server-side;\ncalling a Police Job export does not bypass them.",[10,47,48,49,53],{},"See the ",[13,50,52],{"href":51},"/docs/base/jobs-base/server-exports#player-interaction-whitelist","Sky Jobs Base server exports","\nfor registration, permissions, and the preferred shared exports.",[10,55,56,57,59],{},"Police keeps compatibility forwards for cuffs, zipties, and escort. Leg restraints and head bags are owned exclusively by Jobs Base; call the corresponding ",[34,58,36],{}," exports directly.",[61,62,64],"h4",{"id":63},"cuffplayersourceid-targetid-cufftype-options",[34,65,66],{},"cuffPlayer(sourceId, targetId, cuffType?, options?)",[68,69,70,78,152],"ul",{},[71,72,73,77],"li",{},[74,75,76],"strong",{},"Purpose",": Applies cuffs or zipties to a target player from another resource.",[71,79,80,83,84],{},[74,81,82],{},"Arguments",":\n",[68,85,86,96,104,121],{},[71,87,88,91,92,95],{},[34,89,90],{},"sourceId"," (",[34,93,94],{},"number","): The server ID of the acting player.",[71,97,98,91,101,103],{},[34,99,100],{},"targetId",[34,102,94],{},"): The server ID of the target player.",[71,105,106,91,109,112,113,116,117,120],{},[34,107,108],{},"cuffType",[34,110,111],{},"string?","): ",[34,114,115],{},"\"cuffs\""," (default) or ",[34,118,119],{},"\"zipties\"",".",[71,122,123,91,126,129,130],{},[34,124,125],{},"options",[34,127,128],{},"table?","):\n",[68,131,132,141],{},[71,133,134,91,137,140],{},[34,135,136],{},"ignoreItemCheck",[34,138,139],{},"boolean?",") — skip the restraint item requirement and consumption.",[71,142,143,91,146,148,149,120],{},[34,144,145],{},"allowSelf",[34,147,139],{},") — allow ",[34,150,151],{},"sourceId == targetId",[71,153,154,157,158,161,162,165,166,169],{},[74,155,156],{},"Returns",": ",[34,159,160],{},"boolean, string?"," — ",[34,163,164],{},"true"," on success, otherwise ",[34,167,168],{},"false"," and a reason key.",[171,172,177],"pre",{"className":173,"code":174,"language":175,"meta":176,"style":176},"language-lua shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","local success, reason = exports[\"sky_policejob\"]:cuffPlayer(sourceId, targetId, \"cuffs\", {\n    ignoreItemCheck = false,\n    allowSelf = false\n})\n","lua","",[34,178,179,227,241,252],{"__ignoreMap":176},[180,181,184,188,192,195,198,201,205,207,210,214,217,219,222,224],"span",{"class":182,"line":183},"line",1,[180,185,187],{"class":186},"sMK4o","local",[180,189,191],{"class":190},"sTEyZ"," success, reason ",[180,193,194],{"class":186},"=",[180,196,197],{"class":190}," exports[",[180,199,200],{"class":186},"\"",[180,202,204],{"class":203},"sfazB","sky_policejob",[180,206,200],{"class":186},[180,208,209],{"class":190},"]:",[180,211,213],{"class":212},"s2Zo4","cuffPlayer",[180,215,216],{"class":190},"(sourceId, targetId, ",[180,218,200],{"class":186},[180,220,221],{"class":203},"cuffs",[180,223,200],{"class":186},[180,225,226],{"class":190},", {\n",[180,228,230,233,235,238],{"class":182,"line":229},2,[180,231,232],{"class":190},"    ignoreItemCheck ",[180,234,194],{"class":186},[180,236,237],{"class":186}," false",[180,239,240],{"class":190},",\n",[180,242,244,247,249],{"class":182,"line":243},3,[180,245,246],{"class":190},"    allowSelf ",[180,248,194],{"class":186},[180,250,251],{"class":186}," false\n",[180,253,255],{"class":182,"line":254},4,[180,256,257],{"class":190},"})\n",[61,259,261],{"id":260},"uncuffplayersourceid-targetid-options",[34,262,263],{},"uncuffPlayer(sourceId, targetId, options?)",[68,265,266,271],{},[71,267,268,270],{},[74,269,76],{},": Removes cuffs or zipties from a target player.",[71,272,273,157,275,120],{},[74,274,156],{},[34,276,160],{},[171,278,280],{"className":173,"code":279,"language":175,"meta":176,"style":176},"local success, reason = exports[\"sky_policejob\"]:uncuffPlayer(sourceId, targetId)\n",[34,281,282],{"__ignoreMap":176},[180,283,284,286,288,290,292,294,296,298,300,303],{"class":182,"line":183},[180,285,187],{"class":186},[180,287,191],{"class":190},[180,289,194],{"class":186},[180,291,197],{"class":190},[180,293,200],{"class":186},[180,295,204],{"class":203},[180,297,200],{"class":186},[180,299,209],{"class":190},[180,301,302],{"class":212},"uncuffPlayer",[180,304,305],{"class":190},"(sourceId, targetId)\n",[61,307,309],{"id":308},"cutziptiessourceid-targetid-options",[34,310,311],{},"cutZipties(sourceId, targetId, options?)",[68,313,314,319],{},[71,315,316,318],{},[74,317,76],{},": Cuts zipties from a target player.",[71,320,321,157,323,120],{},[74,322,156],{},[34,324,160],{},[171,326,328],{"className":173,"code":327,"language":175,"meta":176,"style":176},"local success, reason = exports[\"sky_policejob\"]:cutZipties(sourceId, targetId)\n",[34,329,330],{"__ignoreMap":176},[180,331,332,334,336,338,340,342,344,346,348,351],{"class":182,"line":183},[180,333,187],{"class":186},[180,335,191],{"class":190},[180,337,194],{"class":186},[180,339,197],{"class":190},[180,341,200],{"class":186},[180,343,204],{"class":203},[180,345,200],{"class":186},[180,347,209],{"class":190},[180,349,350],{"class":212},"cutZipties",[180,352,305],{"class":190},[61,354,356],{"id":355},"isplayercuffedtargetid",[34,357,358],{},"isPlayerCuffed(targetId)",[68,360,361,366],{},[71,362,363,365],{},[74,364,76],{},": Reports whether the target player is currently restrained.",[71,367,368,157,370,120],{},[74,369,156],{},[34,371,372],{},"boolean",[171,374,376],{"className":173,"code":375,"language":175,"meta":176,"style":176},"local cuffed = exports[\"sky_policejob\"]:isPlayerCuffed(targetId)\n",[34,377,378],{"__ignoreMap":176},[180,379,380,382,385,387,389,391,393,395,397,400],{"class":182,"line":183},[180,381,187],{"class":186},[180,383,384],{"class":190}," cuffed ",[180,386,194],{"class":186},[180,388,197],{"class":190},[180,390,200],{"class":186},[180,392,204],{"class":203},[180,394,200],{"class":186},[180,396,209],{"class":190},[180,398,399],{"class":212},"isPlayerCuffed",[180,401,402],{"class":190},"(targetId)\n",[404,405,406],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}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":176,"searchDepth":183,"depth":229,"links":408},[409],{"id":23,"depth":229,"text":24,"children":410},[411],{"id":28,"depth":243,"text":29},"Reference for Server: Restraints in policejob.","md",null,{},true,"/docs/jobs/policejob/reference/exports/server-restraints",{"title":5,"description":412},{"loc":417},"1.docs/0.jobs/1.policejob/4.reference/3.exports/3.server-restraints","hb3PNfQ-1W_a9OjYkan_Wk3u_7Gn_HbT7JQ33AATfiQ",[423,428],{"title":424,"path":425,"stem":426,"description":427,"children":-1},"Server: Dispatch","/docs/jobs/policejob/reference/exports/server-dispatch","1.docs/0.jobs/1.policejob/4.reference/3.exports/2.server-dispatch","Reference for Server: Dispatch in policejob.",{"title":429,"path":430,"stem":431,"description":432,"children":-1},"Server: Escort","/docs/jobs/policejob/reference/exports/server-escort","1.docs/0.jobs/1.policejob/4.reference/3.exports/4.server-escort","Reference for Server: Escort in policejob.",[],1791814211505]