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.51k stars 2.07k forks source link

Radio stations are not synced between clients #2820

Open Jarrrk opened 4 days ago

Jarrrk commented 4 days 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 2 days 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