I am trying to make the mountain lion ped aggressive towards any player that gets near them. This is my code, I have been looking into relationships but I dont understand much about it. Please help fixing my code
Citizen.CreateThread(function()
RequestModel(GetHashKey("a_c_mtlion"))
while not HasModelLoaded(GetHashKey("a_c_mtlion")) do
Wait(155)
end
local ped = CreatePed(4, GetHashKey("a_c_mtlion"), -695.71, 5271.62, 75.67, -698.01, false, true)
while true do
Citizen.Wait(10000)
TaskPedSlideToCoord(ped, -695.71, 5271.62, 75.67, -149.404, 10)
end
end)