Comments (5)
i got this too please help us!
from fleeca-bank-heists.
Same issue here
from fleeca-bank-heists.
No support anymore, If someone can help us contact us In discord or In any other platform.
from fleeca-bank-heists.
same issue
from fleeca-bank-heists.
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)"
from fleeca-bank-heists.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fleeca-bank-heists.