You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to how most of the current minigames work for FiveM.
Allowing the script to have exports and do the calls for success / fail would make for excellent additions.
My apologise if something like this is already implemented but, I am unable to find it if so.
Ex.
exports['ol-untangle']:hacking(function(success)
if success then
ClearPedTasks(ped)
AddKey(plate)
else
TriggerServerEvent('hud:server:GainStress', math.random(1, 4))
TriggerEvent("QBCore:Notify", "You failed to lockpick.", "error")
end
end, 10, 20) -- amount of does (int), time
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Similar to how most of the current minigames work for FiveM.
Allowing the script to have exports and do the calls for success / fail would make for excellent additions.
My apologise if something like this is already implemented but, I am unable to find it if so.
Ex.
Cheers.
Beta Was this translation helpful? Give feedback.
All reactions