I can’t seem to fix it, maybe someone can help me.
I gess missing
`
end
`
at line 53
2 Likes
this is correct lol it is missing end
conditionals must have an end
screenshot the error you get ?
what error are you getting in the console ?
You are missing two end to close out the functions and you CANNOT have two else’s. You can have an elseif and only ONE else.
RegisterNetEvent('esx_holdupbanco:currentlyRobbing')
AddEventHandler('esx_holdupbanco:currentlyRobbing', function(currentBanco)
if Config.utkFingerPrint then
ESX.TriggerServerCallback('esx_holdupbanco:hackerDevice', function(gotDevice)
if gotDevice then
TriggerEvent("utk_fingerprint:Start", 4, 2, 2, FingerPrintCallback)
else
TriggerEvent("mhacking:show")
TriggerEvent("mhacking:start",4,30,hackingEvent)
end
end
end
end)
Do as it says, add a ) at line 52.
RegisterNetEvent('esx_holdupbanco:currentlyRobbing')
AddEventHandler('esx_holdupbanco:currentlyRobbing', function(currentBanco)
if Config.utkFingerPrint then
ESX.TriggerServerCallback('esx_holdupbanco:hackerDevice', function(gotDevice)
if gotDevice then
TriggerEvent("utk_fingerprint:Start", 4, 2, 2, FingerPrintCallback)
else
TriggerEvent("mhacking:show")
TriggerEvent("mhacking:start",4,30,hackingEvent)
end
end)
end
end)
That error is something else.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.