client

Options and examples

 ### Checking Player Distance from Specified Coordinates ###

  The `QT.InDistance` function checks whether the player is within a specified distance of a given set of coordinates. 
  This can be useful for determining if the player is close enough to interact with an object or location in the game world.

  ## Function Parameters: ##
  - coords: A table containing the coordinates (usually x, y, z) to check against.
  - distance: A number representing the maximum distance (in units) from the coordinates.

  ## Usage Example: ##
  local coords = { x = 100.0, y = 200.0, z = 30.0 } -- Example coordinates
  local isInDistance = QT.InDistance(coords, 5.0) -- Check if the player is within 5 units

  -- The function returns a boolean value:
  return isInDistance
  
  -- If the player is found within the specified distance of the given coordinates, 
  -- 'isInDistance' will be true; otherwise, it will be false.
 ### Checking Vehicle Location Near Specific Coordinates ###

  The `QT.VehicleNearPoint` function checks if there is a vehicle located near a specified set of coordinates within a given distance. 
  This is useful for determining whether a player or NPC is close to a vehicle in the game world.

  ## Function Parameters: ##
  - coords: A table containing the coordinates (usually x, y, z) to check against.
  - distance: A number representing the radius (in units) within which to check for vehicles.

  ## Usage Example: ##
  local coords = { x = 100.0, y = 200.0, z = 30.0 } -- Example coordinates
  local isVehicleNearby = QT.VehicleNearPoint(coords, 10.0) -- Check within a distance of 10 units

  -- The function returns a boolean value:
  return isVehicleNearby
  
  -- If a vehicle is found within the specified distance of the given coordinates, 
  -- 'isVehicleNearby' will be true; otherwise, it will be false.

Last updated