Skip to content

CptNoHand/qb-zipties

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enjoy

  • For QBCore

Important Notes!

  • Victim Must Have Their Hands Up To Use The Zip Tie
  • Victim Must Be Zip Tied To Use The Blind Fold (headbag)
  • When a Victim is Ziptied they can spam "Point" (Default: B) to release themselves
  • When a Victim is Bagged they can wait until the Bag automatically falls off
  • Kidnappers also have the option to remove both before the Victim does

Dependencies:

  • qb-policejob
  • qb-radialmenu
  • qb-smallresources (Logs)

Built-In:

  • Anti-Cheat Logs
  • Exploit Protected
  • Face Covering Mask
  • Radial Menu Add-Ons
  • Items

Screenshots

radialmenu items

Setup / Installation:

1. Add These Items To qb-core > shared > items.lua


-- Crazy Zipties & HeadBags
	['ziptie']						 ={['name'] = 'ziptie', 						['label'] = 'Zip tie',                  ['weight'] = 300, 		['type'] = 'item', 		['image'] = 'ziptie.png',      			['unique'] = false, 	['useable'] = true,		['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'A zip tie'},
	['headbag']						 ={['name'] = 'headbag', 						['label'] = 'Head Bag',                 ['weight'] = 500, 		['type'] = 'item', 		['image'] = 'headbag.png',      		['unique'] = true, 		['useable'] = true,		['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'A bag to cover someones head'},

2. Replace Event In (qb-policejob > client > interactions.lua : ~ line 303) With This Updated Event


RegisterNetEvent('police:client:GetEscorted', function(playerId)
    local ped = PlayerPedId()
    QBCore.Functions.GetPlayerData(function(PlayerData)
        if PlayerData.metadata["isdead"] or isHandcuffed or PlayerData.metadata["inlaststand"] or PlayerData.metadata['ishandcuffed'] then
            if not isEscorted then
                isEscorted = true
                local dragger = GetPlayerPed(GetPlayerFromServerId(playerId))
                SetEntityCoords(ped, GetOffsetFromEntityInWorldCoords(dragger, 0.0, 0.45, 0.0))
                AttachEntityToEntity(ped, dragger, 11816, 0.45, 0.45, 0.0, 0.0, 0.0, 0.0, false, false, false, false, 2, true)
            else
                isEscorted = false
                DetachEntity(ped, true, false)
            end
            TriggerEvent('hospital:client:isEscorted', isEscorted)
        end
    end)
end)

3. Add Images to (qb-inventory > html > images) from the images folder here

4. 'refresh' (In-Game or Through Tx) then 'ensure crazy-kidnapping' (In-Game or Through Tx)

Thanks!

  • To Any and All Who Helped In The Making of This

About

[QBCore] Zip Ties & Blindfolds

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%