formatting and typos

This commit is contained in:
DokaDoka committed 2022-12-11 15:00:43 +11:00
1 parent 75698216e0
commit 724c7e356d
99 files changed
+515 -305

No files matched your search

+6 -2
View File
@@ -15,6 +15,7 @@ Runs a skill check with the defined difficulty.
```lua
lib.skillCheck(difficulty)
```
</TabItem>
<TabItem value='JS/TS'>
@@ -23,10 +24,11 @@ import lib from '@overextended/ox_lib/client'
lib.skillCheck(difficulty)
```
</TabItem>
</Tabs>
* difficulty: `easy` or `medium` or `hard` or `object`
* difficulty: `easy` or `medium` or `hard` or `object`
* Can set custom difficulty by sending a object instead of string
* { areaSize: `number`, speedMultiplier: `number` }
* easy: { areaSize: 50, speedMultiplier: 1 }
@@ -43,6 +45,7 @@ lib.skillCheck(difficulty)
```lua
local success = lib.skillCheck({'easy', 'easy', {areaSize = 60, speedMultiplier = 2}, 'hard'})
```
</TabItem>
<TabItem value='JS/TS'>
@@ -51,7 +54,8 @@ import lib from '@overextended/ox_lib/client'
const success = await lib.skillCheck(['easy', 'easy', {areaSize: 60, speedMultiplier: 2}, 'hard'])
```
</TabItem>
</Tabs>
![Image](https://i.imgur.com/RWSWZ1I.png)
![skillcheck_example](https://i.imgur.com/RWSWZ1I.png)