citizenfx / fivem

The source code for the Cfx.re modification frameworks, such as FiveM, RedM and LibertyM, as well as FXServer.
https://cfx.re/
3.57k stars 2.11k forks source link

Radio station tracks are not synced between clients #2820

Open Jarrrk opened 1 month ago

Jarrrk commented 1 month ago

What happened?

When multiple players attempt to listen to the same radio station the currently playing track is not synced.

I've asked about this years ago but it's always been a low on the priority list, submitting for visibility as it's one of the few base game features that do not function correctly within FiveM.

Expected result

Radios stations to be synced between clients.

Reproduction steps

  1. Enter a vehicle and tune the radio station to a specific station
  2. Second player enter the vehicle and will not be hearing the same currently playing track

Importancy

Slight inconvenience

Area(s)

FiveM

Specific version(s)

10005/beta / latest

Additional information

N/A

d22tny commented 1 month ago

with a setter for _GET_CURRENT_RADIO_TRACK_PLAYBACK_TIME you can do it with a script. you can get and set the radio, track, and i saw some undocumented natives for tuning forward, so pretty sure you can sync them with a script. a setter for the current playback time would just be easier, setting the time directly

Jarrrk commented 1 month ago

with a setter for _GET_CURRENT_RADIO_TRACK_PLAYBACK_TIME you can do it with a script. you can get and set the radio, track, and i saw some undocumented natives for tuning forward, so pretty sure you can sync them with a script. a setter for the current playback time would just be easier, setting the time directly

From when this was spoken about some time ago, even if a setter method was added it still wouldn't match the functionality as seen within the base game (mainly advertisements etc)

DaniGP17 commented 3 weeks ago

This has been fixed in https://github.com/citizenfx/fivem/commit/4bf700621b95a9284756ef44a643a8172ef42161?

Ehbw commented 3 weeks ago

This has been fixed in 4bf7006?

No this is a different issue.