I’m working on a Dutch PED/MDT system. When a user sends a message to the police/ambulance, it shows up in my web appication. Certain people will have access to this and are able to pair police/ambulance units to an emergency message.
When a unit is connected to a call, my webapp updates a JSON file with a GPS coordinate, information and the ID of the unit.
So instead of using the ID (that isn’t static) I want to use something that doesn’t need changing.
I’m hoping it’s possible to link a certain identifier or steamID to a player.
Any information on this topic would be amazing, I’ve been struggeling a lot with this issue.
I’m a little bit confused about what you’re asking for; are you after info on player identifiers?
I’m after identifers (or anything else to target a player with an event). I want to set a waypoint in their minimap. But I’m sending the data from a webserver (JSON format)
Right now I’m using steam names, but people can change these so it’s not the best. I need something that doesn’t change.
No no, don’t use steam names lol. Take a look at this native:
https://runtime.fivem.net/doc/natives/#_0x7302DBCF
You can also use GetPlayerIdentifiers() (note the s on the end) to get all a player’s identifiers. I would suggest using something like their steamid, or FiveM license, or a mixture of the two.