Coder Social home page Coder Social logo

project-sloth / ps-adminmenu Goto Github PK

View Code? Open in Web Editor NEW
84.0 84.0 67.0 1.57 MB

An admin menu for QBCore.

Home Page: https://discord.com/invite/projectsloth

License: Other

Lua 92.32% HTML 0.21% Svelte 6.38% TypeScript 0.83% JavaScript 0.19% CSS 0.07%

ps-adminmenu's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ps-adminmenu's Issues

Warn Player

(Warn Player) not working for me, when doing a test I get no notification, nothing. Checking my profile on the adminmenu too shows nothing.

Uncaught (in promise) TypeError: Failed to fetch

Describe the bug
It seems that I get a console error when ever I click an action within the menu. Sometimes it is one error, other times it is multiple errors.

To Reproduce
Steps to reproduce the behavior:

  1. Open ps-adminmenu
  2. Go to 'Actions' tab
  3. Select any action (possibly the same action multiple times)
  4. Error pops up in F8 menu

Screenshots
image

Additional context
For reference, when I was using the menu, I specifically was using the "Toggle Laser" action.

I un-minified the code to narrow the error and it seems to be coming from this snippet here: ps-adminmenu/html/index.js line 630

async function fe(n, e = {}, l) {
	if ((Ot == !0 && l) || Ot == !0) return Promise.resolve(l || {});
	const t = {
			method: "post",
			headers: { "Content-Type": "application/json; charset=UTF-8" },
			body: JSON.stringify(e),
		},
		r = window.GetParentResourceName ? window.GetParentResourceName() : Nn;
	return await (await fetch(`https://${r}/${n}`, t)).json();
}

where line 630 is the return await (await fetch(`https://${r}/${n}`, t)).json();

I'm guessing whatever URL its generating isn't returning anything causing an error to be thrown.

Spawning personal cars

I choose 1 car, and hit spawn. it spawns, if i hit an another car and press spawn it will spawn the previous model with the second car's modifications

Per Anna

Unban Players

I would appreciate it if a function were added to unban players.

Clear Inventory

I am ID number (1) and when you clear the inventory of a player such as me it only says (1s inventory cleared) maybe it should be players name?!

Permissions dont work

Describe the bug
When I try to perform some action with the admin menu, I cannot execute it because it always tells me that I am not an admin or god, but I have permissions from the server.cfg as administrator and I have already changed all the permissions of the admin menu to admin

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'any option'
  2. Click on 'confirm'
  3. Your are not a admin or god

Screenshots

image

permissions

image

Additional context
The problem is with any option on the menu.

Ps-adminmenu after update v1.1.0

Describe the bug
When I updated the ps-adminmenu script to v1.1
1st error:
the noclip button was broken.
2nd error:
When I press the quick actions / "watch player" button in the players section, the player gets revived.

Screenshots
image

authorization hide menu user

the menu and cool but the user can open the menu but cannot interact how to do so that he can not interact with the menu if he does not have god mod admin authorization?

Kick player dont work

Describe the bug
When confirming the kick nothing happens.

To Reproduce
When filling in all the topics with data, when clicking the confirm button nothing happens.

Additional context
no console error.

Infinity toogle IDs

Describe the bug
When server is using infinity mode if a player goes far away. And comes back IDs are messed up. Because its not getting the old server id

To Reproduce
Find a friend toogle ids.
You get corrects IDs.
Teleport to far away.
Then come back to old location.

Screenshots
If applicable, add screenshots to help explain your problem.
https://cdn.discordapp.com/attachments/858609933259112458/1158677744146718781/image.png?ex=651d1e3d&is=651bccbd&hm=f2856c917041cc82cd237c6e504dd70e2253124444d5d82b4fb07f4d53ef1242&

Additional context
Add any other context about the problem here.

Set Gang

(Set Gang) not working either, no notification, nothing. Checking the gang /gang it says Unaffiliated.

Admincar ( Savecar)

Hey everybody,

Resources ps-adminmenu

When I want to use the Admin car function, I immediately get the message "Cannot store this car in your garage".
no NPC cars either

Cars are in the shared.

I use (official) qb garage.

i hope you can look in to it
Thnx :-)

Player Troll Not Working

Describe the bug
when select player in troll getting this error in screenshot and frozend the whole script not working anything

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Player'
  2. Click on 'some player'
  3. Scroll down to '....'
  4. when clicks it then nothing show and script fully get frozen

Screenshots
https://prnt.sc/m3O7PX5KY7S8 this is screenshot the error in f8

Additional context
Add any other context about the problem here.

Forever infinite ammo bug

Describe the bug
enabling infinite ammo / disable has no notify messages... also when you enable it, it gets stuck on that gun through restarts

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

All Menus gone

Describe the bug
I used the admin menu now for 15 weeks and now after a server restart all the mnus are gone ... I reinstalledi t and all but there are no errors or smtrh similar ...

Screenshots
image
image
image

Additional context
I hope this si the right place for this kind of bug ... thank you for helping and deving this script

jobs dont change

Describe the bug
using menu to change jobs dont work .. my job stays as freelancer even when i choose a qbcore default job .

Ban Reason Issue

Describe the bug
When banning a user from the players tab, the reason submitted is no matter what you put in their userid, when banning through the functions tab it functions fine.

Permissions

Describe the bug
Permission has a bug or is it just me?

To Reproduce
Steps to reproduce the behavior:

  1. Set permission as qbcore.admin instead of qbcore.god
  2. Use /admin and it says denied.

Screenshots
image

Additional context
It used to work fine but after I updated a couple of versions later it does this.

/inventory

Found my first bug, when you use the (open inventory) command, it works, but then it bugs open and will not close leading to having to only relog.

image

THE MENU FREEZED WHEN CLICK ON PLAYERS NAME !!!!

The bug happens when we got players and click on players name the menu got freez and it does not close

this bug happens with my friends and me

To Reproduce
Steps to reproduce the behavior:

Go in the player
click on the players name
it breaks
and it does not close

image

Staff Chat formatting and borders

The bug happens when the staff chat window is filled.

To Reproduce
Steps to reproduce the behavior:

  1. Go in the staff chat
  2. spam the chat or just have a normal conversation with the staff
  3. it breaks

Screenshots
image

Additional context
I could add more context on demand. If possible, it would be neat if the new messages would feed from the bottom, like in a regular chat window on any major platform.

Awesome script btw. 10/10

Copy Coords Bug

Describe the bug
Copy Coord's only doing vector2 for all 4 options.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Admin Menu'
  2. Click on 'Actions'
  3. Scroll down to 'Copy Coords'
  4. Select each option and paste to notepad, all options vec2, vec3, vec4 and heading only produce vector2.

Screenshots
image

Vehicle dev mode static values

Describe the bug
When you toggle on the vehicle dev mode the numbers are always same i think its just a UI

Screenshots
image

Additional context
Add any other context about the problem here.

Setjob

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'adminmenu'
  2. Click on 'setjob’
  3. Scroll down to ‘ the person you want to set'
  4. See error

Screenshots
If applicable, add screenshots to help explain your problem.

Additional comments

When hitting setjob nothink actually happens

Discord Logs

Describe the bug
After I checked the logs on discord i saw that when you use most of the commands from the "Actions" list you get the same log

To Reproduce
Steps to reproduce the behavior:

  1. Open Admin menu
  2. Use functions from the "Actions" list that envolve a player ex: Bring Player, Clear inventory, etc.
  3. Open Discord and check the channel that uses the webhook (qb-smallresource/server/logs.lua - ['ps-adminmenu'] = 'discord webhook')
  4. And you will see that for most of the commands you get the same log, it should specify the action used

Screenshots
If applicable, add screenshots to help explain your problem.

Untitled

Blips on infinity

Describe the bug
When blips are toggled on you can only see players on your infinity Radius.

To Reproduce
Toogle blips.
Get move away from the player or players
If players are close to you you can see their blips without any issues but if they leave the infinity radius blip disappears.

Screenshots
image
https://cdn.discordapp.com/attachments/858609933259112458/1158678166446014515/image.png?ex=651d1ea2&is=651bcd22&hm=4678b962862b7b9db951c959b5fc02da38a71685fd3ea3b89e65e71010f8e579&

Additional context
Add any other context about the problem here.

Toggle Names/Blips

The toggle names / blips have the same issues from qb-adminmenu: the show names doesnt show you "your" proper name and the blips only show the nearby players

image

Teleport to Location problem

Describe the bug
When trying to teleport to the location it doesn't work.

To Reproduce
Select the location and click confirm.

Screenshots
image

Give Money to All

The Bug:

[ script:ps-adminmenu] SCRIPT ERROR: @ox_lib/imports/locale/server.lua:12: bad argument #2 to 'format' (no value)

when you give money to all this error happens and no one gets the money

admin menu error

Describe the bug
/admin in my server to pop up admin menu. menu shows up but with no buttons or tags of any sorts

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots
Screenshot 2024-06-12 110233

Additional context
Add any other context about the problem here.

Dev Mode toogle

Describe the bug
When we toggle dev mode on the left side on the menu nothing happens.

To Reproduce

Toggle dev mode on the left hand side menu nothing happens

Screenshots
image

Additional context
Add any other context about the problem here.

[Feature Request] Delete Character

Features
Delete character
Delete offline character

Explanation

A way to delete a character, of a player either for use when a character kill happens or when a player has cheated or gained access to unwanted stuff. Could be implemented really easy using simple SQL strings like.

Source (Qb-characterkill)
exports.oxmysql:execute('DELETE FROM players WHERE citizenid = ?', { citizenid }) exports.oxmysql:execute('DELETE FROM player_vehicles WHERE citizenid = ?', { citizenid }) exports.oxmysql:execute('DELETE FROM player_outfits WHERE citizenid = ?', { citizenid }) exports.oxmysql:execute('DELETE FROM player_houses WHERE citizenid = ?', { citizenid }) exports.oxmysql:execute('DELETE FROM player_contacts WHERE citizenid =?', { citizenid }) exports.oxmysql:execute('DELETE FROM playerskins WHERE citizenid =?', { citizenid })

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.