Coder Social home page Coder Social logo

qb-radialmenu's Introduction

qb-radialmenu

Radial Menu Used With QB-Core ๐Ÿ”„

Now using FontAwesome Icons! To change icons get the name from FontAwesome (v5) and use the icon's name in the config.lua for the icon (no fa- or # just the name like arrow-right)

License

QBCore Framework
Copyright (C) 2021 Joshua Eger

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>

qb-radialmenu's People

Contributors

aljo003 avatar amineohn avatar berkiebb avatar danielcoelh0 avatar eins4ckzwiebeln avatar evanillaa avatar ghzgarage avatar holidayy95 avatar idrisdose avatar itsanobrainer avatar jamie9192 avatar jeann2013 avatar jonasdev17 avatar kurosar avatar matthewrorke avatar newtonzz avatar nzkfc avatar r0adra93 avatar restrictednova avatar reyyghi avatar suelthedev avatar taktic1an avatar theilleniumstudios avatar tom-osborne avatar tonybynmp4 avatar unorthadoxpigeon avatar ushifty avatar z3rio avatar zfbx avatar zviux avatar

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qb-radialmenu's Issues

Possibility to hide/show menu

I would like to hear if it's possible to add if you're not close to a vehicle, the main-menu will not show up, untill you're close to it?

The same counts if you're close to an Apartment all house stuff will show up.

Best regards,
izriNdes

Bags (Particularly Female)

Bags can't be taken off, specifically females. When you try to use the /bag or F1 option, it animates but the bag remains. Looking at the code, it looks like local bags = {} is atomic, regardless of model or gender.

[BUG] /putintrunk notifies the kidnapped player trunk is closed

Describe the bug
/putintrunk command notifies the kidnapped player trunk is closed even when the trunk is open.

To Reproduce
Steps to reproduce the behavior:

  1. Kidnap a player.
  2. Get near a vehicle with an open trunk.
  3. Use /putintrunk command.
  4. Drops kidnapped player.
  5. Kidnapped player receives the notification trunk is closed.

Expected behavior
The kidnapped player should enter the trunk when open.

Questions (please complete the following information):

  • When you last updated: Latest Resources
  • Are you using custom resource? which ones? No
  • Have you renamed qb- to something custom? No

Additional context
Been trying to fix this but can't make it work.

Static Radialmenu

is there a way to keep it static once i press F1, instead of holding the button down?

[BUG] radialmenu stuck ui

Describe the bug
Radial menu stuck sometimes.

Questions (please complete the following information):

  • When you last updated: [e.g. last week]
    2-3 days before
  • Are you using custom resource? which ones? [e.g. zdiscord, qb-target]
    No
  • Have you renamed qb- to something custom? [e.g. yes/no]
    No

[QUESTION] Walking while opened

Hey, can you or someone else here help me?

I want it to be possible that you can walk while having the radialmenu opened but Im not "skilled" enough to change it myself.

Thanks in advance.

Attach positioning inconsistent

When another player is near the stretcher and you lay on it, you will hover above it. When no one is near you lay directly on it. Similarly when you push the stretcher and another player is near the stretcher will be clipped into the ground. If no one is around it will be at the correct height.

I submitted a pull request with a fix but it was closed.
#77

qb-radialmenu

Having issues while being opened and picking options you punch with every click

Movement

[Question] is there anyway to make it so people can move whilst using the menu?

[BUG]

is this ever gonna get fixed? clothing doesnt work at all with new radial menu pull. no commands. doesnt work in the actual menu. no errors. no custom file names etc. this has been broken for AGES.

cooldown

how can i add command to radialmenu ?
when i type /priority on command thats working ...
but when i add it on radialmenu its dosent work.

Menu/Cursor Issue

If you click the centre menu too fast it will freeze the player UI and the script needs to be restarted

Possibly needs a small timeout to prevent spam clicking

How to replicate
Open Radial menu
Navigate to 2 or 3 sub-menus
Click the back icon very fast and then click the close icon

[SUGGESTION] Config option for Toggle or Hold to open radial menu

Is your feature request related to a problem? Please describe.
No

Describe the feature you'd like
Add a config option to change how the radial menu is opened. A number of people request changing from pressing and holding, to just pressing once to open and again to close (toggle)
Similar to this PR #108

Describe alternatives you've considered
A server-wide config option would suffice, but if this was able to be implemented on a player-by-player basis then it would allow for everyone to use it how they wish. Might need an NUI menu to allow the settings to be changed.

Additional context
N/A

[BUG] QB-Radialmenu UI Issue

Describe the bug
Theres an issue with the most recent version of qb-radialmenu. The radial menu works fine until an officer or ems try to open the menu when they are downed / dead. A cursor appears but the radial menu does not. This causes the cursor to become stuck on your screen and you can no longer do anything. You must restart the script to get the cursor off your screen. I also tried this on a fresh install and the same issue occurred

To Reproduce
Steps to reproduce the behavior:

  1. Kill your character who is either a cop or ems
  2. Open your radial menu

Expected behavior
I expected the radial menu to open like its suppose to

Screenshots
Video of the issue
https://streamable.com/dh970j

Questions (please complete the following information):

  • When you last updated: [e.g. last week]
    I tried this on a fresh server install yesterday.

  • Are you using custom resource? which ones? [e.g. zdiscord, qb-target]
    No this is the default qb-radialmenu

  • Have you renamed qb- to something custom? [e.g. yes/no]
    no, it is called qb-radialmenu

Additional context
Add any other context about the problem here.

[Issue?] Config.ExtrasEnabled = true/false doens't work

I noticed Config.ExtrasEnabled = true is in the conig.lua, however setting it to false I assume that the vehicle extras menu is supposed to be hidden or similar? If it is, it's not working when set to false.

I also tried commenting out the extras block line 352 to 450 and it causes F1 too throw an error when inside a car: https://discord.com/channels/831626422232678481/868498482359582741/884984198581080125

I then commented out line 357 to 448 and that stops the use of extras, but the F1 menu for it still exists, just shows blank. So im not sure how to make the "vehicle extras" button go away.

Not sure if it's just a bug or such?

Radial menu for gangs

Im trying to set it for my gangs but dont know how. Is it possible and if not will you implement this? Please

[BUG] could not be found, replacing a question mark

Describe the bug
console.error(Icon "${link}" could not be found, replacing a question mark.);
svg.setAttribute('viewBox', 0 0 ${icos[link][0]} ${icos[link][1]});

in RadialMenu js

To Reproduce
Steps to reproduce the behavior:

  1. Go to use F1 and i get 2 error in f8
  2. Click on '....'
  3. Use this item '....' (item's name from shared.lua if applicable)
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

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

rerror

Questions (please complete the following information):

  • When you last updated: [e.g. last week]
  • Are you using custom resource? which ones? [e.g. zdiscord, qb-target]
  • Have you renamed qb- to something custom? [e.g. yes/no]

Additional context
Add any other context about the problem here.

[BUG] Cant use Clothing in F1

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:

  1. Go to '...' F1 and the clothing section take off glasses or hat. nothing happens.
  2. Click on '....'
  3. Use this item '....' (item's name from shared.lua if applicable)
  4. See error

Expected behavior
when you click F1 and go to clothing you should be able to use it.

Screenshots
tba

Questions (please complete the following information):

  • When you last updated: [e.g. last week] Latest
  • Are you using custom resource? which ones? [e.g. zdiscord, qb-target]
  • Have you renamed qb- to something custom? [e.g. yes/no] no

Additional context
Add any other context about the problem here.

Flip car

Flip car option is not available on the radial menu.

[SUGGESTION] Clean up vehicle seat layout

Is your feature request related to a problem? Please describe.
Would be good to change how the layout works for vehicle seats in radial

Describe the feature you'd like
Align the menu with how a car would look top down, so left seat is top left, passenger is top right etc etc

Describe alternatives you've considered
I've tried changing it at around the below area, works for 4 doors, but not for 2 doors/motorbikes etc.

local seatTable = {

Additional context
What it could look like for 4 door:
https://i.imgur.com/zUWqNjC.png

For 2 door:
https://i.imgur.com/CRvF7Io.png (excuse shitty edits)

Chuuur

Menu wont stay open (recent version update)

Anyone else notice with the most recent version the menu wont stay open unless you hold F1?

Is there a setting someplace I can change to fix it so it will stay open unless I close it or click on an option that should close it?

[BUG]

Describe the bug
When down I can't do anything, I used to be able to use the radial menu under police for the emergency button .. but i get this error and can't even open my chat

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'F1'
  2. Click on 'nothing to click on '
  3. Use this item '....' n/a
  4. See error

image

Expected behavior
for radial menu to work properly

Screenshots
above

Questions (please complete the following information):

  • When you last updated: [e.g. last week] 5 minutes ago
  • Are you using custom resource? which ones? [e.g. zdiscord, qb-target] zdiscord qb-target
  • Have you renamed qb- to something custom? [e.g. yes/no] no

Additional context
I saw some issues with this and figured if i updated and had an undoctored version it would fix the issue.

vehicle

Hello, when I open radial in vehicle I cant get out of car until I open radial again

[BUG] Emergency Button while Dead Error

Describe the bug
When an officer is downed and needs additional units to know, they should press F1 and see the emergency button. When they do this, they click the emergency button and then they are able to move their cursor around the screen and get stuck, not able to click anything at all.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'F1 menu' (while downed as an officer)
  2. Click on 'Emergency Button'
  3. See error

Expected behavior
When pressed, the emergency button should alert other officers.

Screenshots
Screenshot (437)

Questions (please complete the following information):

  • When you last updated: Last Week
  • Are you using custom resource? which ones? No
  • Have you renamed qb- to something custom? No

Additional context
None at the moment

[SUGGESTION] seperate undershirts Female / Male

Is your feature request related to a problem? Please describe.
I cant set another (seperate) undershirt for female than for male

Describe the feature you'd like
I would like to set another (seperate) undershirt for female than for male

Describe alternatives you've considered
tryed it with "Id = {male = 15; female =14} since it should get male & female, but it didnt worked out

Additional context
in qb-radialmenu/client/clothing.lua
https://prnt.sc/mS9SqyWFup3J here i want to choose a seperate drawable Id for female

qb-radialmenu

you forgot to rename brancard.lua to stretcher.lua

[BUG] Clothing.lua Error

Describe the bug
When going through the F1 menu to change clothing (F1>General>Clothing>Shirt) and take off my characters shirt, it works, but then when I do the same to put it back on, I get the error seen in the screenshot.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'F1 Menu'
  2. Click on 'General'
  3. Click on 'Clothing'
  4. Click on 'Shirt' (shirt comes off character)
  5. Repeat steps 1-4 (to put shirt back on)
  6. See error

Expected behavior
To have characters shirt put back on

Screenshots
Screenshot (438)

Questions (please complete the following information):

  • When you last updated: Last Week
  • Are you using custom resource? which ones? No
  • Have you renamed qb- to something custom? No

Additional context
None at the moment

[BUG] shirt command in radialmenu gives up error message

Describe the bug
image

Bug occurs when trying to toggle the shirt via the radialmenu if executing the command nothing happens

To Reproduce
Steps to reproduce the behavior:
Install qb-radialmenu
attempt to use it to take off a shirt/jacket
redo the steps to re-apply the jacket
error.

Expected behavior
Re-apply the jacket/shirt

Screenshots
image

Questions (please complete the following information):

  • When you last updated: [today
  • Are you using custom resource? which ones? not related
  • Have you renamed qb- to something custom? no

Menu cursor bug

When using the menu, it can close, and the cursor remains, and also the car seats change wont work.

[BUG] Both (Extra items) Gloves and Visor not working + errors

Describe the bug
So using both extra options in the radialmenu (gloves) "error 1 in config" and (visor) "error 2 in config" doesn't do anything but shows an error in the logs.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Radialmenu, clothing, extras, open gloves or visor and both dont do anything, then check logs.'
  2. See error (image below)
    https://imgur.com/uAT81f4

Expected behavior
Of course to open the selected item as the tip shows.

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

Questions (please complete the following information):

  • When you last updated: [recent update]
  • Are you using custom resource? which ones? [tried both with and without custom resources running]
  • Have you renamed qb- to something custom? [nope]

Additional context
N/A

Stuck Issue

Holding G (our hotkey) when opening the menu will create multiple copies of the menu in place and require a relog to fix (without restarting the resource)

I believe this needs the key down event to stop being fired multiple times

[BUG] Windows Defender false positive.

It appears windows defender's machine learning service detects qb-radialmenu as a trojan, specifically "index.html". We can only speculate what certain parts of its content it detects as malicious, perhaps the content delivery? Linking a local library might be more prudent in this case.

Untitled

qb-radicalmenu does not open after updating

Hey everyone, i just downloaded this script at 6:30pm Est tonight 1/12/22 and im getting these errors after drag and drop to update the menu. ive also downloaded the Locales file and put in qb-core\shared and im experiencing these errors:

qb-radialmenu error PNG

qb-radialmenu\client\main.lua

RegisterCommand('radialmenu', function() (Line 6--->) if not PlayerData.metadata["isdead"] and not PlayerData.metadata["inlaststand"] and not PlayerData.metadata["ishandcuffed"] and not IsPauseMenuActive() and not inRadialMenu then openRadial(true) SetCursorLocation(0.5, 0.5) end end)

If i do "refresh, and ensure qb-radicalmenu" in the console it gives me this:

qb-radialmenu error 2

-- Sets the metadata when the player spawns (<----Line 14) RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function() PlayerData = QBCore.Functions.GetPlayerData() end)

Vehicle Extras

When placing a vehicle extra onto a car you have to /fix the vehicle for the extras to show up onto the car

flip car option

flip car option doesn't exist for mechanic job...hope you add it

Radial menu gets stuck on a cursor when closed

Describe the bug
Radial menu opens fine but when it closes cursor gets stuck on screen and characters can not move

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

https://gyazo.com/9bfe766ff59c391f7711c6c7c9c756f7

Questions (please complete the following information):

  • When you last updated: Most Recent
  • Are you using custom resource? which ones? [e.g. zdiscord, qb-target] No
  • Have you renamed qb- to something custom? [e.g. yes/no] No

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.