Skip to content

Commit

Permalink
chore: Rename client.mdx and server.mdx for events in ox_core.
Browse files Browse the repository at this point in the history
client.mdx was full of the server events and even title.
server.mdx was full of the server events and even title.
Swap file names and fix.
  • Loading branch information
Kode-Red committed Sep 5, 2024
1 parent a2ba132 commit 34aa8a6
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 60 deletions.
60 changes: 27 additions & 33 deletions pages/ox_core/Events/client.mdx
Original file line number Diff line number Diff line change
@@ -1,67 +1,61 @@
# Server Events
# Client Events

## ox:savedPlayers
## ox:playerLoaded

Description..

```lua
function(playersSaved: number)
function(playerId: number, isNew: boolean)
```

## ox:setActiveGroup
## ox:statusTick

Description..

```lua
function(playerId: number, groupName: string)
function(statuses: Record<string, OxStatus>)
```

---

# Net Events

## ox:setGroup

Description..

```lua
function(playerId: number, groupName: string, grade?: number)
function(groupName: string, grade?: number)
```

## ox:licenseAdded

```lua
function(playerId: number, licenseName: string)
```

## ox:licenseRemoved
Description..

```lua
function(playerId: number, licenseName: string)
function(licenseName: string)
```

## ox:playerLogout

```lua
function(playerId: number, userId: number, charId: number)
```
## ox:licenseRemoved

## ox:createdCharacter
Description..

```lua
function(playerId: number, userId: number, charId: number)
function(licenseName: string)
```

## ox:playerLoaded

```lua
function(playerId: number, userId: number, charId: number)
```
## ox:startCharacterSelect

## ox:deletedCharacter
Description..

```lua
function(playerId: number, userId: number, charId: number)
function(userId: number, characters: Character[])
```

## ox:savedVehicles

```lua
function(vehiclesSaved: number)
```
## ox:setActiveCharacter

## ox:spawnedVehicle
Description..

```lua
function(entityId: number, id: number)
function(character: Character, groups: Record<string, number>)
```
60 changes: 33 additions & 27 deletions pages/ox_core/Events/server.mdx
Original file line number Diff line number Diff line change
@@ -1,61 +1,67 @@
# Client Events
# Server Events

## ox:playerLoaded

Description..
## ox:savedPlayers

```lua
function(playerId: number, isNew: boolean)
function(playersSaved: number)
```

## ox:statusTick

Description..
## ox:setActiveGroup

```lua
function(statuses: Record<string, OxStatus>)
function(playerId: number, groupName: string)
```

---

# Net Events

## ox:setGroup

Description..

```lua
function(groupName: string, grade?: number)
function(playerId: number, groupName: string, grade?: number)
```

## ox:licenseAdded

Description..

```lua
function(licenseName: string)
function(playerId: number, licenseName: string)
```

## ox:licenseRemoved

Description..
```lua
function(playerId: number, licenseName: string)
```

## ox:playerLogout

```lua
function(licenseName: string)
function(playerId: number, userId: number, charId: number)
```

## ox:startCharacterSelect
## ox:createdCharacter

Description..
```lua
function(playerId: number, userId: number, charId: number)
```

## ox:playerLoaded

```lua
function(playerId: number, userId: number, charId: number)
```

## ox:deletedCharacter

```lua
function(userId: number, characters: Character[])
function(playerId: number, userId: number, charId: number)
```

## ox:setActiveCharacter
## ox:savedVehicles

```lua
function(vehiclesSaved: number)
```

Description..
## ox:spawnedVehicle

```lua
function(character: Character, groups: Record<string, number>)
function(entityId: number, id: number)
```

0 comments on commit 34aa8a6

Please sign in to comment.