[HELP] GetVehicleOwner


I’m trying to use a function to check if the driver is the owner of vehicle, but all time the tests with the function GetVehicleOwner return false.

local enterVeh = GetVehiclePedIsIn( GetPlayerPed(-1) ) -- its ok
if (enterVeh ~= nil) then -- its ok
    local ownerOfVehicle = GetVehicleOwner(enterVeh) -- always return false???


Seems to me like that native is intended for use in gta online so wouldnt work in FiveM as you dont actually “own” any vehicle in fivem, i could be completely wrong however, but thats what it seems like to me