Comments (6)
same error here
from esx_thief.
Tried multiple edits to both lines 21 and 25 but no luck here
from esx_thief.
I was told that the code is fine but something else must be conflicting with it to have this error and thus having the script not work properly.
from esx_thief.
Have the same issue, any luck on this error?
from esx_thief.
local canHandsUp = true
local GUI = {}
GUI.Time = 0
AddEventHandler("handsup:toggle", function(param)
canHandsUp = param
end)
Citizen.CreateThread(function()
local handsup = false
while true do
Wait(0)
local lPed = GetPlayerPed(-1)
RequestAnimDict("random@mugging3")
if canHandsUp then
if (IsControlPressed(1, Config.handsUP.clavier) and (GetGameTimer() - GUI.Time) > 150) or ((IsControlPressed(2, Config.handsUP.manette1) and IsControlPressed(2, Config.handsUP.manette2)) and (GetGameTimer() - GUI.Time) > 150) then
if handsup then
if DoesEntityExist(lPed) then
Citizen.CreateThread(function()
RequestAnimDict("random@mugging3")
while not HasAnimDictLoaded("random@mugging3") do
Citizen.Wait(100)
end
if handsup then
handsup = false
ClearPedSecondaryTask(lPed)
TriggerServerEvent("esx_thief:update", handsup)
end
end)
end
else
if DoesEntityExist(lPed) then
Citizen.CreateThread(function()
RequestAnimDict("random@mugging3")
while not HasAnimDictLoaded("random@mugging3") do
Citizen.Wait(100)
end
if not handsup then
handsup = true
TaskPlayAnim(lPed, "random@mugging3", "handsup_standing_base", 8.0, -8, -1, 49, 0, 0, 0, 0)
TriggerServerEvent("esx_thief:update", handsup)
end
end)
end
end
GUI.Time = GetGameTimer()
end
end
end
end)
from esx_thief.
same problem.
from esx_thief.
Related Issues (20)
- Doesn't work correctly HOT 3
- Error Resuming coroutine HOT 1
- Menu is only 1ms open HOT 3
- How to remove hands up requirement? HOT 1
- broken handsup again?
- menu does not close when you move away from another player HOT 4
- menu close HOT 1
- Can shoot while hands up
- Loot the dead HOT 2
- cant count money and black money
- Update Script HOT 1
- Look at player inventory but not be able to take
- Error Steal HOT 2
- Can't steal items from player HOT 2
- Support for esx 1.2 HOT 3
- Lock
- guns
- Fix handsup HOT 2
- Error loading script
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 esx_thief.