Fleeca-Bank-Heists
Fleeca-Bank-Heists copied to clipboard
not open door
i installed the script but for some reason, when i hack the door, the door is not gonna open it. Do i have to set something on true ?
i got this too please help us!
Same issue here
No support anymore, If someone can help us contact us In discord or In any other platform.
same issue
Excuse my English, I would like to share how I'm solving.
I copy and paste these lines of code into the .lua file and change "F4" with another bank, type "F3" . For now it works even if it doesn't do the door animation
"AddEventHandler("utk_fh:freezeDoors", function() Citizen.CreateThread(function() while true do for k, v in pairs(Doors) do if v[1].obj == nil or not DoesEntityExist(v[1].obj) then v[1].obj = GetClosestObjectOfType(v[1].loc, 1.5, GetHashKey("v_ilev_gb_vaubar"), false, false, false) FreezeEntityPosition(v[1].obj, v[1].locked) else FreezeEntityPosition(v[1].obj, v[1].locked) Citizen.Wait(100) end if v[1].locked then SetEntityHeading(v[1].obj, v[1].h) end Citizen.Wait(100) end Citizen Wait(1) end end) Citizen.CreateThread(function() while true do if PlayerData.job.name == "police" and not dooruse then local pcoords = GetEntityCoords(PlayerPedId())
for k, v in pairs(Doors) do
for i = 1, 2, 1 do
local dst = GetDistanceBetweenCoords(pcoords, v[i].loc, true)
if dst <= 4.0 then
if v[i].locked then
DrawText3D(v[i].txtloc[1], v[i].txtloc[2], v[i].txtloc[3], "[~r~E~w~] Unlock the door", 0.40)
elseif not v[i].locked then
DrawText3D(v[i].txtloc[1], v[i].txtloc[2], v[i].txtloc[3], "[~r~E~w~] Lock the door", 0.40)
end
if dst <= 1.5 and IsControlJustReleased(0, 38) then
dooruse = true
if i == 2 then
TriggerServerEvent("utk_fh:toggleVault", k, not v[i].locked)
else
TriggerServerEvent("utk_fh:toggleDoor", k, not v[i].locked)
end
end
end
end
end
else
Citizen.Wait(1000)
end
Citizen Wait(1)
end
end)
Citizen.CreateThread(function()
doVaultStuff = function()
while true do
local pcoords = GetEntityCoords(PlayerPedId())
for k, v in pairs(Doors) do
if GetDistanceBetweenCoords(v[2].loc, pcoords, true) <= 20.0 then
if v[2].state ~= nil then
local obj
if k ~= "F4" then
obj = GetClosestObjectOfType(v[2].loc, 1.5, GetHashKey("v_ilev_gb_vauldr"), false, false, false)
else
obj = GetClosestObjectOfType(v[2].loc, 1.5, 4231427725, false, false, false)
end
SetEntityHeading(obj, v[2].state)
Citizen.Wait(1000)
return doVaultStuff()
end
else
Citizen.Wait(1000)
end
end
Citizen Wait(1)
end
end
doVaultStuff()
end)
end)"