EggRP / fxcommands

Streamdeck Plugin for FiveM commands
MIT License
31 stars 6 forks source link

Button Radio #13

Closed nrjgab closed 1 year ago

nrjgab commented 1 year ago

Hello, my button /setfrequency not working, can you help me please

josh-tf commented 1 year ago

Hi mate, /setfrequency will only work if it is a command that the server owner has created, you will need to check with them to see if its available

macgyverK9 commented 1 year ago

Yep I have it t /changeradio 918Sent from my Galaxy -------- Original message --------From: Josh Bowden @.> Date: 2023-02-14 8:23 p.m. (GMT-05:00) To: EggRP/fxcommands @.> Cc: Subscribed @.***> Subject: Re: [EggRP/fxcommands] Button Radio (Issue #13) Hi mate, /setfrequency will only work if it is a command that the server owner has created, you will need to check with them to see if its available

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

nrjgab commented 1 year ago

Ok, I tried the right order, and it still doesn't work

Le mer. 15 févr. 2023, 02:23, Josh Bowden @.***> a écrit :

Hi mate, /setfrequency will only work if it is a command that the server owner has created, you will need to check with them to see if its available

— Reply to this email directly, view it on GitHub https://github.com/EggRP/fxcommands/issues/13#issuecomment-1430617179, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQVH6H7SYQDWR64U6IHFDXTWXQVYBANCNFSM6AAAAAAU3RFCQE . You are receiving this because you authored the thread.Message ID: @.***>

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

R4K0 commented 1 year ago

The issue is, what we found through a quick debug session - Is that server-side only commands aren't able to be triggered directly through an external plugin call into the console.

If the command was registered on the client, you will be able to trigger it with the plug-in

One work-around around the issue is creating a multi-action step:

  1. Create a RunCommand action, that runs bind keyboard F7 "changeradio 918"
  2. Hotkey - Press F7
  3. RunCommand action - unbind keyboard F7

Bit arse we have to do that, I'd love being able to avoid this. I'm not sure how the plugin hooks onto the FiveM instance so it can issue commands directly to the console, but perhaps there's another way?

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.