Garry's Mod Wiki

DTileLayout:FindFreeTile

  number, number DTileLayout:FindFreeTile( number x, number y, number w, number h )

Description

This is used internally - although you're able to use it you probably shouldn't.

Finds the coordinates of the first group of free tiles that fit the given size.

Arguments

1 number x
The x coordinate to start looking from.
2 number y
The y coordinate to start looking from.
3 number w
The needed width.
4 number h
The needed height.

Returns

1 number
The x coordinate of the found available space.
2 number
The y coordinate of the found available space.