CreateThread(function()
local sharkModel = GetHashKey("a_c_sharktiger")
RequestModel(sharkModel)
while not HasModelLoaded(sharkModel) do
Wait(0)
end
local coords = GetEntityCoords(PlayerPedId(), false)
local shark = CreatePed(28, sharkModel, coords.x, coords.y, coords.z, 0.0, true, true)
SetModelAsNoLongerNeeded(sharkModel)
if shark == 0 then return end
TaskSharkCircleCoord(shark, coords.x, coords.y, coords.z - 5.0, 1.0, 10.0)
Wait(10000) -- We're letting the shark do circle movement for 10 seconds
ClearPedTasks(shark) -- Going to stop the task
end)