qbcore-framework / qb-adminmenu Goto Github PK
View Code? Open in Web Editor NEWAdmin Menu Using MenuV
License: GNU General Public License v3.0
Admin Menu Using MenuV
License: GNU General Public License v3.0
Describe the bug
Latest version of adminmenu , banning people doesn't work.
It does not give me any console errors.
I have noticed the 'reason' doesn't save in the menu after being typed in, probably that's why?
EDIT: Apparently it does work, but you have to press all the buttons for it to work even though you don't change the time from the default one (1 hour).
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.
No
Describe the feature you'd like
A clear and concise description of what you want to happen. and with as much detail as possible how it would function in your opinion. Please try to keep it unique.
Add a items, section that pulls a list of all items from the items.lua
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered for people to have in mind just in case the main idea isn't liked but a derivative is.
Additional context
Add any other context or screenshots about the feature request here.
Ability to give items from items.lua through admin menu.
I say take a look at the player tracking because it's not working
As the subject says, the following code in server.lua
local coords = GetEntityCoords(GetPlayerPed(player.id))
always yields (0, 0, 0), because GetPlayerPed(player.id) yields 0 instead of an actualy entity (even though the player.id is correct and present)
I first noticed this in qb-inventory, where creating a drop at the player's location would break because of this. I'm fairly new to lua and fivem code and haven't been able to figure out what's causing this.
Either nobody has noticed this (unlikely) or it's some kind of issue on my end that I can't figure out. Can anyone shed light on this please?
Describe the bug
Had a player join in with an emoji as his name listed. The admin menu was not detecting him but he was on TXadmin. The player was clearly modding as he loaded in an area that was not a spawn location. He then TP'd to another location, swapped his clothes and had a gun in his inventory.
It seems to be the same set of hacks since when they TP and change cloths it just becomes a black hoodie and white shorts.
Not all emoji's trick the menu, I have seen most of them appear but this would be the first to not be captured.
Describe the bug
when my admins or others with god permission attempt to /reportr (respond to a /report) they message is not sent to chat. But for me alone I can /reportr and reply to the /report done by a player.
To Reproduce
Steps to reproduce the behavior:
Have someone /report anything
Have and admin/god who is not server owner try /reportr and reply
Expected behavior
anyone with Admin perms and above should be able to /reportr to assist a player.
Describe the bug
SCRIPT ERROR: @qb-adminmenu/server/server.lua:94: attempt to concatenate a nil value (field 'discord')
To Reproduce
Steps to reproduce the behavior:
Screenshots
Questions (please complete the following information):
qb-
to something custom? [e.g. yes/no] :::: NoAdditional context
Add any other context about the problem here.
can't see player blips in map when someone is out of scope
Questions (please complete the following information):
qb-
to something custom? NoWhen I turn on the display of blips and all player names, the top of my head shows another player's name, not showing my character's name correctly
i cant open map on noclip
command /setmodel not working
Describe the bug
I am trying to add other roles such as moderator to do less things. I'm curious how this functions. I have a server with Badger API's to lead in and assign ACE perms. The menu is built with USER, ADMIN, and GOD roles. We want GOD to be Devs, ADMIN to be high staff like head admins and community managers, and USER for regular players but we also need Moderator and General Admin.
Expected behavior
Lock some features like perms from Moderator and Admin, while allowing for high staff and dev's.
Questions (please complete the following information):
qb-
to something custom? [e.g. yes/no] no1)how do I add additional roles?
2)If someone has a user role (whitelisted) plus a staff role (generaladmin), which takes priority? How can I allow someone to have the (whitelisted) role plus a staff role? I believe my roles are conflicting but not too sure, any guidance is appreciated. When someone has (whitelisted) plus a staff role like (generaladmin), sometimes the (whitelisted) role prevents (generaladmin) access.
Describe the bug
it shows that I gave them the permissions but when they try to use it they cannot use them
When trying to ban it says must specify a reason but the reason has been filled it
Describe the bug
Vehicle Spawn from Menu is not spawing
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should Spawn vehicle from menu
Screenshots
Questions (please complete the following information):
qb-
to something custom? [no]client side
if WarMenu.MenuButton("Check Appartment Inventory", currentPlayer) then
local targetId = GetPlayerServerId(currentPlayer)
QBCore.Functions.TriggerCallback('qb-admin:server:getTargetAppartment', function(tAppartment)
OpenTargetAppartmentInventory(tAppartment)
end, targetId)
end
server side
QBCore.Functions.CreateCallback('qb-admin:server:getTargetAppartment', function(source, cb, player)
local Target = QBCore.Functions.GetPlayer(player)
local appartment = Target.PlayerData.metadata["currentapartment"]
cb(appartment)
end)
function OpenTargetAppartmentInventory(target)
WarMenu.CloseMenu()
--TriggerServerEvent("inventory:server:OpenInventory", "stash", target)
end
Describe the bug
When you try to ban someone, the ban does not list on db and this error is sent to server console:
[ script:oxmysql] [ERROR] qb-adminmenu was unable to execute a query!
[ script:oxmysql] Undefined object parameter #3
[ script:oxmysql] INSERT INTO bans (name, license, discord, ip, reason, expire, bannedby) VALUES (?, ?, ?, ?, ?, ?, ?) {"1":"Cosmin","2":"license:6c7fd8407306d6eb0a9ae94b7f29527b6cbddfdg","4":"ip:noipshownhere","5":"Reasosdasfasf","6":1634600586,"7":"Heisenberg"}
To Reproduce
Steps to reproduce the behavior:
Expected behavior
List ban into db
Questions (please complete the following information):
qb-
to something custom? nolocal noClipCam = nil
local speed = 1.0
local maxSpeed = 32.0
local minY, maxY = -89.0, 89.0
local inputRotEnabled = false
function toggleNoclip()
CreateThread(function()
local ped = PlayerPedId()
local veh = GetVehiclePedIsIn(ped, false)
local inVehicle = false
if veh ~= 0 then
inVehicle = true
ent = veh
else
ent = ped
end
local pos = GetEntityCoords(ent)
local rot = GetEntityRotation(ent)
noClipCam = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", pos, 0.0, 0.0, rot.z, 75.0, true, 2)
AttachCamToEntity(noClipCam, ent, 0.0, 0.0, 0.0, true)
RenderScriptCams(true, false, 3000, true, false)
FreezeEntityPosition(ent, true)
SetEntityCollision(ent, false, false)
SetEntityAlpha(ent, 0)
SetPedCanRagdoll(ped, false)
SetEntityVisible(ent, false)
ClearPedTasksImmediately(ped)
if inVehicle then
FreezeEntityPosition(ped, true)
SetEntityCollision(ped, false, false)
SetEntityAlpha(ped, 0)
SetEntityVisible(ped, false)
end
while noClipEnabled do
local rv, fv, uv, campos = GetCamMatrix(noClipCam)
if IsDisabledControlPressed(2, 17) then -- MWheelUp
speed = math.min(speed + 0.1, maxSpeed)
elseif IsDisabledControlPressed(2, 16) then -- MWheelDown
speed = math.max(0.1, speed - 0.1)
end
local multiplier = 1.0;
if IsDisabledControlPressed(2, 209) then
multiplier = 2.0
elseif IsDisabledControlPressed(2, 19) then
multiplier = 4.0
elseif IsDisabledControlPressed(2, 36) then
multiplier = 0.25
end
-- Forward and Backward
if IsDisabledControlPressed(2, 32) then -- W
local setpos = GetEntityCoords(ent) + fv * (speed * multiplier)
SetEntityCoordsNoOffset(ent, setpos)
if inVehicle then
SetEntityCoordsNoOffset(ped, setpos)
end
elseif IsDisabledControlPressed(2, 33) then -- S
local setpos = GetEntityCoords(ent) - fv * (speed * multiplier)
SetEntityCoordsNoOffset(ent, setpos)
if inVehicle then
SetEntityCoordsNoOffset(ped, setpos)
end
end
-- Left and Right
if IsDisabledControlPressed(2, 34) then -- A
local setpos = GetOffsetFromEntityInWorldCoords(ent, -speed * multiplier, 0.0, 0.0)
SetEntityCoordsNoOffset(ent, setpos.x, setpos.y, GetEntityCoords(ent).z)
if inVehicle then
SetEntityCoordsNoOffset(ped, setpos.x, setpos.y, GetEntityCoords(ent).z)
end
elseif IsDisabledControlPressed(2, 35) then -- D
local setpos = GetOffsetFromEntityInWorldCoords(ent, speed * multiplier, 0.0, 0.0)
SetEntityCoordsNoOffset(ent, setpos.x, setpos.y, GetEntityCoords(ent).z)
if inVehicle then
SetEntityCoordsNoOffset(ped, setpos.x, setpos.y, GetEntityCoords(ent).z)
end
end
-- Up and Down
if IsDisabledControlPressed(2, 51) then -- E
local setpos = GetOffsetFromEntityInWorldCoords(ent, 0.0, 0.0, multiplier * speed / 2)
SetEntityCoordsNoOffset(ent, setpos)
if inVehicle then
SetEntityCoordsNoOffset(ped, setpos)
end
elseif IsDisabledControlPressed(2, 52) then
local setpos = GetOffsetFromEntityInWorldCoords(ent, 0.0, 0.0, multiplier * -speed / 2) -- Q
SetEntityCoordsNoOffset(ent, setpos)
if inVehicle then
SetEntityCoordsNoOffset(ped, setpos)
end
end
local camrot = GetCamRot(noClipCam, 2)
SetEntityHeading(ent, (360 + camrot.z) % 360.0)
SetEntityVisible(ent, false)
if inVehicle then
SetEntityVisible(ped, false)
end
DisableControlAction(2, 32, true)
DisableControlAction(2, 33, true)
DisableControlAction(2, 34, true)
DisableControlAction(2, 35, true)
DisableControlAction(2, 36, true)
DisableControlAction(2, 12, true)
DisableControlAction(2, 13, true)
DisableControlAction(2, 14, true)
DisableControlAction(2, 15, true)
DisableControlAction(2, 16, true)
DisableControlAction(2, 17, true)
DisablePlayerFiring(PlayerId(), true)
Wait(0)
end
DestroyCam(noClipCam, false)
noClipCam = nil
RenderScriptCams(false, false, 3000, true, false)
FreezeEntityPosition(ent, false)
SetEntityCollision(ent, true, true)
SetEntityAlpha(ent, 255)
SetPedCanRagdoll(ped, true)
SetEntityVisible(ent, true)
ClearPedTasksImmediately(ped)
if inVehicle then
FreezeEntityPosition(ped, false)
SetEntityCollision(ped, true, true)
SetEntityAlpha(ped, 255)
SetEntityVisible(ped, true)
SetPedIntoVehicle(ped, ent, -1)
end
end)
end
function checkInputRotation()
CreateThread(function()
while inputRotEnabled do
while noClipCam == nil do
Wait(0)
end
local rightAxisX = GetDisabledControlNormal(0, 220)
local rightAxisY = GetDisabledControlNormal(0, 221)
if (math.abs(rightAxisX) > 0) and (math.abs(rightAxisY) > 0) then
local rotation = GetCamRot(noClipCam, 2)
rotz = rotation.z + rightAxisX * -10.0
local yValue = rightAxisY * -5.0
rotx = rotation.x
if rotx + yValue > minY and rotx + yValue < maxY then
rotx = rotation.x + yValue
end
SetCamRot(noClipCam, rotx, rotation.y, rotz, 2)
end
Wait(0)
end
end)
end
AddEventHandler("refresh:noclipcode", function(pIsEnabled)
noClipEnabled = pIsEnabled
inputRotEnabled = pIsEnabled
if noClipEnabled and inputRotEnabled then
toggleNoclip()
checkInputRotation()
end
end)```
This code is better than the current one, and it has better control, especially in the subject of flight, and better control and realistically without going down to the ground as you go further.
The old one is very bad
[SUGGESTION] Have the ability to use ESC muscle when no clipped.
on some machines the error is error.no_store_vehicle_garage
returned when you do the /admincar command the reason is quite simple: the script reads the machine name with spaces and this does not allow it to run correctly. luckily I have already solved this problem and just insert
vehname = vehname:gsub("%s+", "") vehname = string.gsub(vehname, "%s+", "")
After last update of QB-Core i am now getting these errors in the console and i can not for the life of me solve them nor can anyone else on the discord, any help is much appreciated
note all my scripts are up to date and the getcoreobject thing is at the top of all my scripts and still get these errors
Describe the bug
Sometimes when you log into server the admin menu will throw a error code in the F8 console. This error code is random when it happens. If you log out of server and log back in the error code will go away and admin menu will work just fine.
To Reproduce
This error message is random and no way to best reproduce it. It dose not happen every time you log in. Just random moments.
Screenshots
https://cdn.discordapp.com/attachments/859528707814981653/899283681036894259/qb-adminmeni_error.png
Questions (please complete the following information):
qb-
to something custom? NoIam using onesync Infinity and commands goto / bring / freeze stopped working on the qb adminmenu
when using the spectate function, the camera does not move behind the player, and when disabled, visibility does not resume
So the admin command /setmodle dus not work an dus not pop out any errors.
When activating godmode from the menu nothing changes, you can still die to bullets and fall damage
Hi so when ever i had a wave of hackers that came into my server I was trying use the admin panel to ban ppl but every time I put in a response and enter it tell's me not enough reason... i don't know why it was doing that, but beside the point I had to go threw my txadmin to ban the ppl
Describe the bug
When you spectate a player thats out of the infinty range, itll make you invisible, and youll just fall out of the map
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should just spectate the player
Questions (please complete the following information):
qb-
to something custom? [e.g. yes/no] noBans and kicks appear not to be working for some odd reason,
I dont really understand why as I've had it working before the new update to the menu its self, if anyone can help me out with this it would be greatly appriciated :)
Describe the bug
A clear and concise description of what the bug is. A stranger to qbcore should be able to read your bug report and understand how to reproduce it themselves and understand how the feature should work normally.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Questions (please complete the following information):
qb-
to something custom? [e.g. yes/no]Additional context
Add any other context about the problem here.
Describe the bug
So setting permissions in /admin under player management --> USER --- Permissions does not save.
To Reproduce
For example, I am set to god in the Server.cfg but in the admin menu I am set to user. If I set my permission to god on the menu and restart my game I have to redo it because it does not save for some reason.
Expected behavior
Setting a players permission should stay whether or not the player restarts his/her game!
Screenshots
No screenshots really necessary
Questions (please complete the following information):
qb-
to something custom? No I have notAdditional context
I have followed the guidelines in the discord channel
https://discord.com/channels/831626422232678481/852748355838410762/961046399816966174
add_ace resource.qb-core command allow # Allow qb-core to execute commands
add_ace qbcore.god command allow # Allow all commands
add_principal qbcore.god group.admin # Error proof
add_principal qbcore.god qbcore.admin # Allow gods access to admin commands
add_principal qbcore.admin qbcore.mod # Allow admins access to mod commands
add_principal identifier.fivem:5222421 qbcore.god #p4r4
Am I missing anything ?
can add vector4 in copy coords
vector3 It already exists, but we want to add
Issues with spectate function not working propperly!
When spectating a "player" it does not hop in spectate mode. it teleports an admin / staff to the player in invisible state. which means it does not work like a "cam" spectating. This works sometimes, but mostly not! Is this a known issue or just related to us?
Describe the bug
Earlier this morning the admin menu was working perfectly fine, all of a sudden out of no where I get these errors, now I cant do anything in the admin menu, cant noclip, cant revive, cant see players in the server, literally everything is disabled.
To Reproduce
I dont know how it happened or why it happened, which is why im looking for guidance to help me fix this issue
Expected behavior
Unable to use admin menus features
Screenshots
in this image, its the errors relating to the admin menu
Questions (please complete the following information):
qb-
to something custom? noDescribe the bug
I've got a bug with /reporttoggle command where it should give you 2 options. Either Toggle reports ON or OFF but I only get OFF. Since /staffchat is connected to that staff members also can't chat on the server. I checked console ingame and server log console and I found no bugs.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When using /reporttoggle
Screenshots
( I spammed /reporttoggle for refrence to see what I get )
Questions (please complete the following information):
qb-
to something custom? NoAdditional context
Staff chat doesn't work either since it is connected to reporttoggle
**kickall command not working
When I enter the command and include a reason and confirmation I get the message 'No reason specified' instead of executing the command**
change speed noclip not work with shift key
Describe the bug
Currently Spectate is not working
Apparently it also has something to do with the distance if someone is in my render radius it works.
/staff chat does not error but is no longer showing up in chat
Describe the bug
When you open up the admin menu, and you go to player management, then select spectate player, it teleports you to the player, makes you invisible and etc but it doesn't set your player in spectator mode. You're able to freely walk around and away from the player that's supposed to be spectated. The function "NetworkSetInSpectatorMode" is not being activated.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
For my player that's doing the spectating, hover over the player selected to spectate
Screenshots
If applicable, add screenshots to help explain your problem.
https://streamable.com/9tebjc
Questions (please complete the following information):
qb-
to something custom? NoAdditional context
Add any other context about the problem here.
Describe the bug
sometimes you activate the names and blips option in the admin menu and the name above the head as well as the id are wrong. getting name and id from other player
To Reproduce
Steps to reproduce the behavior:
Screenshots
https://imgur.com/a/wSY9xD0 (I'm kenne not vinicius)
Questions (please complete the following information):
qb-
to something custom? noWith Onesync turned on, we cannot watch any remote player from the admin menu or the map does not load when we go to it.
Hello, I recently installed the whole of qbcore and it seems that the admin perms don't work. I follow the steps and add my license etc to the database but it seems that it still doesn't let any of my admins who I've set to "god" save. When I override it by setting the admin menu to the role of user and set staff as admins, it doesn't save either.
Can't wait to hear back from you guys.
I am currently trying to set my permissions using the database. I have copied my license identifier from txAdmin and set my permission to "god" all lowercased no spaces. in attempt to use "/admin" after a server restart an error "No Access To This Command" is displayed.
I was working on new ideas for pdm and using the vehicle shop to "buy" cars as a admin but for some reason now when I try to hit buy for free, the command pops up as if I have no access to this command. Anyone know any fixes for that?
Is your feature request related to a problem? Please describe.
Sometimes players leave cars out which you can /dv or remove via entity viewer from outside the car, however these sometimes don't work so better to unlock it so you can /dv inside it.
Describe the feature you'd like
A clear and concise description of what you want to happen. and with as much detail as possible how it would function in your opinion. Please try to keep it unique.
Add a function in adminmenu to unlock/lock car as a toggle I guess, also a /unlock and /lock command would be cool.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered for people to have in mind just in case the main idea isn't liked but a derivative is.
Additional context
Add any other context or screenshots about the feature request here.
[SUGGESTION] ADD keys like F2 For noclip and F5 for the menu
The commands are showing up as suggestion but when i use them it does nothing. I tested multiple chats and none of them showed any different results.
There are no errors whatsoever. I have the admin permissions set correctly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.