mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
1.0 KiB
1.0 KiB
title
| title |
|---|
| Skill Check |
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
lib.skillCheck
Runs a skill check with the defined difficulty.
lib.skillCheck(difficulty)
import lib from '@overextended/ox_lib/client'
lib.skillCheck(difficulty)
- difficulty:
easyormediumorhardorobject- Can set custom difficulty by sending a object instead of string
- { areaSize:
number, speedMultiplier:number}
- { areaSize:
- Sending an array will chain the checks together and return false if one fails and true if all succeed
- Can set custom difficulty by sending a object instead of string
Usage Example
local success = lib.skillCheck({'easy', 'easy', {areaSize = 250, speedMultiplier = 2}, 'hard'})
import lib from '@overextended/ox_lib/client'
const success = await lib.skillCheck(['easy', 'easy', {areaSize: 250, speedMultiplier: 2}, 'hard'])