30 lines
1.1 KiB
JavaScript
30 lines
1.1 KiB
JavaScript
// ===========================================================================
|
|
// Vortrex's Roleplay Resource
|
|
// https://github.com/VortrexFTW/v-roleplay
|
|
// ===========================================================================
|
|
// FILE: handcuff.js
|
|
// DESC: Provides features and usage for the handcuff item type
|
|
// TYPE: Server (JavaScript)
|
|
// ===========================================================================
|
|
|
|
// ===========================================================================
|
|
|
|
function isPlayerHandCuffed(client) {
|
|
return (getPlayerData(client).pedState == V_PEDSTATE_BINDED);
|
|
}
|
|
|
|
// ===========================================================================
|
|
|
|
function handCuffPlayer(client) {
|
|
getPlayerData(client).pedState = V_PEDSTATE_BINDED;
|
|
setPlayerControlState(client, false);
|
|
}
|
|
|
|
// ===========================================================================
|
|
|
|
function unHandCuffPlayer(client) {
|
|
getPlayerData(client).pedState = V_PEDSTATE_READY;
|
|
setPlayerControlState(client, true);
|
|
}
|
|
|
|
// ===========================================================================
|