Note:
To use this in your radial wheel for example, you can use the ExecuteCommand([command name]) native, just trigger that native somewhere in your code and my script will do the rest!
ExecuteCommand(‘tieshoes’)
ExecuteCommand(‘untieshoes’)
If anyone else was having issues with the functions.lua for qb-core implementation
if Config.Framework[“framework”] == ‘qb-core’ then
QBCore = exports[‘qb-core’]:GetCoreObject()
elseif Config.Framework[“framework”] == ‘bj’ then
Citizen.CreateThread(function(…)
while BJCore == nil do
TriggerEvent(“BJCore:GetObject”, function(obj)
BJCore = obj
end)
Citizen.Wait(0)
end
end)
elseif Config.Framework[“framework”] ~= ‘esx’ then
– Code for other frameworks or imports in the fxmanifest
else
print(‘CUSTOM FRAMEWORK’)
end
^edit line 4 to 19 with this
When people walk/run, sometimes their shoes come untied.
Then you can add the option that after a certain time there is a chance that people will stumble.