Client
Client exports for wlabs_handcuff
Optional local-only helpers. These do not change authoritative state.
IsCuffed / IsDragged / GetCuffType
Check local state.
local isCuffed = exports['wlabs_handcuff']:IsCuffed()
local isDragged = exports['wlabs_handcuff']:IsDragged()
local cuffType = exports['wlabs_handcuff']:GetCuffType()GetRestraintType
Get local restraint type.
local restraintType = exports['wlabs_handcuff']:GetRestraintType()Events
Client Interaction Triggers (Optional)
triggerCuffInteraction
TriggerEvent('wlabs_handcuff:client:triggerCuffInteraction', targetServerId, cuffType, isAggressive, restraintId)triggerUncuffInteraction
TriggerEvent('wlabs_handcuff:client:triggerUncuffInteraction', targetServerId)State Bags
Entity(ped).state.isCuffed: (boolean)Entity(ped).state.cuffType: (string)'front'or'back'Entity(ped).state.restraintType: (string) Restraint ID (for example'cuffs','cable_ties')Entity(ped).state.isDragged: (boolean)Entity(ped).state.draggedBy: (number) Server ID of dragger