To prevent this, I'm making a small correction for those using qb. Open the qb-smallresources/client/handsup.lua file. Then replace this code
local handsUp = false
RegisterCommand(Config.HandsUp.command, function()
local ped = PlayerPedId()
if not HasAnimDictLoaded('missminuteman_1ig_2') then
RequestAnimDict('missminuteman_1ig_2')
while not HasAnimDictLoaded('missminuteman_1ig_2') do
Wait(10)
end
end
handsUp = not handsUp
if exports['0r-handcuffs']:isHandcuffed() then return end
if handsUp then
TaskPlayAnim(ped, 'missminuteman_1ig_2', 'handsup_base', 8.0, 8.0, -1, 50, 0, false, false, false)
exports['qb-smallresources']:addDisableControls(Config.HandsUp.controls)
else
ClearPedTasks(ped)
exports['qb-smallresources']:removeDisableControls(Config.HandsUp.controls)
end
end, false)
RegisterKeyMapping(Config.HandsUp.command, 'Hands Up', 'keyboard', Config.HandsUp.keybind)
exports('getHandsup', function() return handsUp end)
server.cfg
The server.cfg initialization order should be as follows.
If you are going to use an apartment system, pay attention to the server.cfg sequence. The motel system must be initialized before your multicharacter script.