Skip to content

Flexiboi/qb-houserobbery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

qb-houserobbery

CREDITS: https://github.com/qbcore-framework/qb-houserobbery


This version uses qb-target on items and storages to steal it.
Sonme items will be placed in your hand and you will have to go behind a car and place it in the trunk.
I have commented out the sneak function since it didnt 100% work

You will have to edit the loot in the config.
Might need to edit ps-dispatch

Items that spawn in your hand:
  • TV
  • LAPTOP
  • LAMP
  • MONEYCASE

SETUP

Check if you have the furnitured_midapart shell Add this to qb-interior > client > main

exports('CreateHouseRobbery1', function(spawn)
	local objects = {}
    local POIOffsets = {}
	POIOffsets.exit = json.decode('{"x": 1.46, "y": -10.33, "z": 1.06, "h": 0.39}')
	DoScreenFadeOut(500)
    while not IsScreenFadedOut() do
        Wait(10)
    end
	RequestModel(`furnitured_midapart`)
	while not HasModelLoaded(`furnitured_midapart`) do
	    Wait(1000)
	end
	local house = CreateObject(`furnitured_midapart`, spawn.x, spawn.y, spawn.z, false, false, false)
    FreezeEntityPosition(house, true)
    objects[#objects+1] = house
	TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h)
    return { objects, POIOffsets }
end)

Dont forget to add this to 'client > functions' in your qb-core

function QBCore.Functions.FaceToPos(x, y, z)
    local ped = PlayerPedId()
    local positionToFace = vector3(x,y,z)
    local pedPos = GetEntityCoords(ped)
    local x = positionToFace.x - pedPos.x
    local y = positionToFace.y - pedPos.y
    local heading = GetHeadingFromVector_2d(x, y)
    SetEntityHeading(ped, heading)
end

About

A Qb-houserobbery edit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages