A native does not work. TaskVehicleMissionPedTarget

In lua

TASK_VEHICLE_MISSION_PED_TARGET #
// 0x9454528DF15D657A 0xC81C4677
// TaskVehicleMissionPedTarget

native does not work. I even tried copying the parameters from decompiled scripts of GTA V ( for curious snails: https://github.com/brendan-rius/gta-v-decompiled-scripts/blob/master/taxiservice.c4 ).

I tried this code:

local x, y, z = 466.14,248.14,103.21
local vehicle = CreateVehicle(hash, x, y, z, 0.0, true, false)
local ped = CreatePedInsideVehicle(vehicle, 26, GetHashKey("a_f_y_hipster_02"), -1, 1, true)
SetEntityAsMissionEntity(ped,true,true)
SetEntityAsMissionEntity(vehicle,true,true)
TaskVehicleMissionPedTarget(ped,vehicle,GetPlayedPed(-1),4, 25.0, 1, 300.0, 15.0, 1)

I haven’t tried in C# since I haven’t set up my new pc with VS.

Do you guys have any info about this native?

Try inserting GetPlayerPed(-1) instead of GetPlayedPed(-1)