#Phone & Inventory (QB)
26 messages · Page 1 of 1 (latest)
Are you using qb-inventory?
I think it's because they use keymappings
I don't think you can disable them, not sure though 🤔
i don't think qb has that functionality but i can take a look
otherwise you can just set Config.KeepInput to false
You won't be able to walk while you have the phone focused (cursor enabled). You can press ALT to toggle your cursor on/off
Do you have admin?
And can you send the exact command you are entering
okay, can you set Config.Debug to true, then go to lb-phone/server/custom/frameworks/qb.lua and edit QB.Commands.Add to ```lua
QB.Commands.Add("toggleverified", "Toggle verified for a user profile", {
{
name = "app",
help = "The app, twitter or instagram"
},
{
name = "username",
help = "The profile username"
},
{
name = "verified",
help = "The verified state, 1 or 0"
}
}, true, function(source, args)
local app, username, verified = args[1], args[2], args[3]
print("toggleverified", app, username, verified)
if (app ~= "twitter" and app ~= "instagram") or (not username) or (verified ~= 1 and verified ~= 0) then
return
end
ToggleVerified(app, username, verified == 1)
end)```
DarkChat does not have any notifications
yeah but it doesn't send anything, i think every app has it in settings
send the edited file
you are missing and end) at the end
you are missing and end)
you need two
no
ToggleVerified(app, username, verified == 1)
end)
end)```
does it print that?
try changing the function to: lua QB.Commands.Add("toggleverified", "Toggle verified for a user profile", { { name = "app", help = "The app, twitter or instagram" }, { name = "username", help = "The profile username" }, { name = "verified", help = "The verified state, 1 or 0" } }, true, function(source, args) local app, username, verified = args[1], args[2], args[3] print("toggleverified", app, username, verified) if (app ~= "twitter" and app ~= "instagram") or (not username) or (verified ~= 1 and verified ~= 0) then print("invalid args") return end print("triggering ToggleVerified", app, username, verified == 1) ToggleVerified(app, username, verified == 1) end)
oh shit
i see the issue
change to this: ```lua
QB.Commands.Add("toggleverified", "Toggle verified for a user profile", {
{
name = "app",
help = "The app, twitter or instagram"
},
{
name = "username",
help = "The profile username"
},
{
name = "verified",
help = "The verified state, 1 or 0"
}
}, true, function(source, args)
local app, username, verified = args[1], args[2], tonumber(args[3])
if (app ~= "twitter" and app ~= "instagram") or (not username) or (verified ~= 1 and verified ~= 0) then
return
end
ToggleVerified(app, username, verified == 1)
end)```
and it should work
awesome 😄
will be fixed in the next update, so you won't need to change the file each time 🙂