Skip to main content

Task::useNearestScenarioToCoord

Client-side function

JavaScript​

Required Params​

  • ped: number
  • x: number
  • y: number
  • z: number
  • distance: number
  • duration: number

Return value​

  • void

Syntax​

mp.game.task.useNearestScenarioToCoord(ped, x, y, z, distance, duration)

Example​

//todo