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

GetVehicleNumberPlateText RPC not working. #2838

Open Demigod916 opened 2 hours ago

Demigod916 commented 2 hours ago

What happened?

when calling the Native GetVehicleNumberPlateText on the server, it returns nothing. using the same native on the client returns the correct plate string value.

Expected result

the native should return the plate on both the client and server

Reproduction steps

  1. call GetVehicleNumberPlateText(entity) on a vehicle from the server
  2. print the result

Importancy

Slight inconvenience

Area(s)

FiveM, Natives

Specific version(s)

FiveM 10191, GTA 3095, Windows 11

Additional information

No response

AvarianKnight commented 2 hours ago

This isn't an RPC native, this was broken with this https://github.com/citizenfx/fivem/commit/02ea63f87f2af6028d814a442e8cbc72e68f51f5 commit

There's already a PR open to fix this

See: https://github.com/citizenfx/fivem/pull/2834

Though it has a bunch of white space changes which is currently blocking the PR

Demigod916 commented 1 hour ago

honestly i just assumed it as an RPC not sure why. Thanks for the info!

AvarianKnight commented 1 hour ago

Most (if not all) getters are read directly, setters like SET_PED_HEAD_BLEND_DATA are RPC natives.

Demigod916 commented 1 hour ago

Right right. probably where my confusion was