e756e29294
Restaurat jobs.lua din git (Quasar fork a suprascris joburile 17mov). Adăugat item map în items.lua (lipsea, rupt rv-maphold). Setat licences.driver = false în config.lua. Override QBCore.Functions.Notify + QBCore:Notify event → 17mov_Hud:ShowNotification (toate notificările merg automat prin 17mov_Hud).
52 lines
917 B
Markdown
52 lines
917 B
Markdown
# OxMySQL exports wrapper for FiveM
|
|
|
|
Types are fully supported and you will get intellisense on the `oxmysql` object when using it.
|
|
|
|
## Installation
|
|
|
|
```yaml
|
|
# With pnpm
|
|
pnpm add @overextended/oxmysql
|
|
|
|
# With Yarn
|
|
yarn add @overextended/oxmysql
|
|
|
|
# With npm
|
|
npm install @overextended/oxmysql
|
|
```
|
|
|
|
## Usage
|
|
|
|
Import as module:
|
|
|
|
```js
|
|
import { oxmysql } from '@overextended/oxmysql';
|
|
```
|
|
|
|
Import with require:
|
|
|
|
```js
|
|
const { oxmysql } = require('@overextended/oxmysql');
|
|
```
|
|
|
|
## Documentation
|
|
|
|
[View documentation](https://overextended.github.io/docs/oxmysql)
|
|
|
|
```js
|
|
oxmysql.scalar('SELECT username FROM users', (result) => {
|
|
console.log(result)
|
|
}).catch(console.error)
|
|
|
|
oxmysql.scalar('SELECT username FROM users').then((result) => {
|
|
console.log(result)
|
|
}).catch(console.error)
|
|
|
|
const result = await oxmysql.scalar('SELECT username FROM users').catch(console.error)
|
|
console.log(result)
|
|
```
|
|
|
|
## License
|
|
|
|
LGPL-3.0
|