GetEntityCoords & DoesEntityExist server side

Hi,

resource_manifest_version '05cfa83c-a124-4cfa-a768-c24a5811d8f9
RegisterCommand("test", function(source, args, rawCommand) {
    const entity  = NetworkGetEntityFromNetworkId(source);
    if (DoesEntityExist(entity)) {
        console.log(GetEntityCoords(entity));
    }
}, false);

No result return, entity not exist.

Version : 1354 on windows 10

See my old OneSync testing repo to see how to get an entity position using OneSync server side

what is utils ?

It’s another file in that repository. This is written in typescript/JavaScript but the natives are exact same.

TLDR: use GetPlayerPed(Source) instead of what you were doing with the network stuff

thx, “GetEntityHeading” return only 0

That’s correct. It’s not synced due to some internal issues. I don’t remember exactly what. No priority. But you can SetEntityHeading if I’m not mistaken