mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 06:28:54 +00:00
refactor: Add h1 headers to all pages missing it (#137)
* refactor: Add h1 headers to all pages missing it * refactor: missed example h3 * change hooks example heading to bold text --------- Co-authored-by: Luke <[email protected]>
This commit is contained in:
1 parent
74227cc262
commit
1d2c490b26
95 files changed
+2167
-2289
No files matched your search
@@ -1,4 +1,6 @@
|
||||
# Points
|
||||
# Client
|
||||
|
||||
## Points
|
||||
|
||||
Simple and centralised distance checking, supporting callbacks when entering, leaving, and standing in-range of set coordinates.
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# Points
|
||||
# Client
|
||||
|
||||
Simple and centralised distance checking, supporting callbacks when entering, leaving, and standing in-range of set coordinates.
|
||||
|
||||
### CPoint
|
||||
## CPoint Class
|
||||
|
||||
A table representing a point with the following properties.
|
||||
|
||||
@@ -22,7 +22,7 @@ A table representing a point with the following properties.
|
||||
- nearby?: `function(self: CPoint)`
|
||||
- Function triggered on frame when within `distance` of the point
|
||||
|
||||
### lib.points.new
|
||||
## lib.points.new
|
||||
|
||||
```lua
|
||||
lib.points.new(data)
|
||||
@@ -36,7 +36,7 @@ Returns:
|
||||
|
||||
- point: `CPoint`
|
||||
|
||||
#### Example
|
||||
### Example
|
||||
```lua
|
||||
local point = lib.points.new({
|
||||
coords = GetEntityCoords(cache.ped),
|
||||
@@ -61,7 +61,7 @@ function point:nearby()
|
||||
end
|
||||
```
|
||||
|
||||
### lib.points.getAllPoints
|
||||
## lib.points.getAllPoints
|
||||
|
||||
Get a table of all points created in the resource.
|
||||
|
||||
@@ -73,7 +73,7 @@ Return:
|
||||
|
||||
- points: `CPoint[]`
|
||||
|
||||
### lib.points.getNearbyPoints
|
||||
## lib.points.getNearbyPoints
|
||||
|
||||
Get an array of all points in range of the player.
|
||||
|
||||
@@ -85,7 +85,7 @@ Return:
|
||||
|
||||
- nearbyPoints: `CPoint[]`
|
||||
|
||||
### lib.points.getClosestPoint
|
||||
## lib.points.getClosestPoint
|
||||
|
||||
Get the data for the closest point to the player.
|
||||
|
||||
|
||||
Reference in new issue
Block a user