You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: frontend/docs/server/Installation.md
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,14 @@
1
+
---
2
+
title: Installation
3
+
sidebar_label: Installation
4
+
description: Guide for transferring your gamemode from SA:MP server to open.mp server.
5
+
---
6
+
1
7
**This tutorial is for those who want to transfer their gamemode from SA:MP server to open.mp server.**
2
8
3
-
:::note
9
+
:::tip
4
10
5
-
If you are using the FCNPC plugin, please stop for now because this plugin does not work for open.mp currently.
11
+
**Good news for FCNPC users!** The legacy FCNPC plugin has been replaced with the official **open.mp NPC component**, which provides the same functionality with better performance and native integration. Simply convert your code to the built-in NPC component instead.
6
12
7
13
:::
8
14
@@ -274,9 +280,9 @@ Or if you prefer you can use the mixed spellings:
274
280
275
281
<hr />
276
282
277
-
-**warning 234: function is deprecated (symbol "GetPlayerPoolSize") This function is broken.**
278
-
-**warning 234: function is deprecated (symbol "GetVehiclePoolSize") This function is broken.**
279
-
-**warning 234: function is deprecated (symbol "GetActorPoolSize") This function is broken.**
283
+
-**warning 234: function is deprecated (symbol "GetPlayerPoolSize") This function is fundamentally broken.**
284
+
-**warning 234: function is deprecated (symbol "GetVehiclePoolSize") This function is fundamentally broken.**
285
+
-**warning 234: function is deprecated (symbol "GetActorPoolSize") This function is fundamentally broken.**
Copy file name to clipboardExpand all lines: frontend/docs/server/LinuxServerInstallation.md
+64-25Lines changed: 64 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,9 @@
1
+
---
2
+
title: Linux Server Installation
3
+
sidebar_label: Linux Server Installation
4
+
description: Comprehensive guide on installing an open.mp server on Ubuntu or another Debian based Linux.
5
+
---
6
+
1
7
**This guide contains a comprehensive guide on installing an open.mp server on Ubuntu or another Debian based Linux.
2
8
Whether you're a beginner or just looking to refresh your knowledge, this guide may have something useful for you!**
3
9
@@ -7,9 +13,9 @@ If you are using the SA:MP server and didn't convert to open.mp yet, **[please s
7
13
8
14
:::
9
15
10
-
:::note
16
+
:::tip
11
17
12
-
If you are using the FCNPC plugin, please stop for now because this plugin does not work for open.mp currently.
18
+
**Good news for FCNPC users!** The legacy FCNPC plugin has been replaced with the official **open.mp NPC component**, which provides the same functionality with better performance and native integration. Simply convert your code to the built-in NPC component instead.
13
19
14
20
:::
15
21
@@ -57,33 +63,54 @@ Seek online guides or your hosting provider's documentation if you're unsure how
57
63
sudo useradd -M svc-omp-server
58
64
```
59
65
60
-
4. Locking the service sccount:
66
+
4. Locking the service account:
61
67
- Let's prevent the service account from being used for login:
62
68
63
69
```
64
70
sudo usermod -L svc-omp-server
65
71
```
66
72
67
-
5. Creating a directory for the server files:
73
+
5. Adding your user to the service group:
74
+
- Add your current user to the svc-omp-server group so you can manage files:
75
+
76
+
```
77
+
sudo usermod -aG svc-omp-server $USER
78
+
```
79
+
80
+
:::warning
81
+
82
+
You need to log out and log back in for group changes to take effect!
83
+
84
+
:::
85
+
86
+
6. Creating a directory for the server files:
68
87
- We will use the /opt directory, this is the standard location for third-party applications:
69
88
70
89
```
71
90
sudo mkdir /opt/omp-server
72
91
```
73
92
74
-
6. Setting permissions for the directory:
93
+
7. Setting permissions for the directory:
75
94
- Changing the group of the directory to match the service account:
76
95
77
96
```
78
97
sudo chgrp svc-omp-server /opt/omp-server
79
98
```
80
99
81
-
- Setting the g+s flag so new files inherit the correct group and remove access for others:
100
+
- Give the group read, write, and execute permissions:
101
+
102
+
```
103
+
sudo chmod g+rwx /opt/omp-server
104
+
```
105
+
106
+
- Setting the g+s flag so new files inherit the correct group:
82
107
83
108
```
84
109
sudo chmod g+s /opt/omp-server
85
110
```
86
111
112
+
- Remove access for others:
113
+
87
114
```
88
115
sudo chmod o-rwx /opt/omp-server
89
116
```
@@ -92,14 +119,14 @@ Seek online guides or your hosting provider's documentation if you're unsure how
92
119
93
120
## Phase 2: Installing open.mp Server Files
94
121
95
-
7. Let's navigate to the server directory:
122
+
8. Let's navigate to the server directory:
96
123
- We need to move to the /opt/omp-server directory where the server will be stored:
97
124
98
125
```
99
126
cd /opt/omp-server
100
127
```
101
128
102
-
8. Downloading the open.mp server files:
129
+
9. Downloading the open.mp server files:
103
130
- Download the latest release of the open.mp server:
104
131
105
132
```
@@ -113,7 +140,7 @@ Seek online guides or your hosting provider's documentation if you're unsure how
113
140
114
141
:::
115
142
116
-
9. Extracting the server files:
143
+
10. Extracting the server files:
117
144
- Once downloaded, extract the files:
118
145
119
146
```
@@ -124,8 +151,8 @@ Seek online guides or your hosting provider's documentation if you're unsure how
124
151
125
152
## Phase 3: Configuring and Starting the Server
126
153
127
-
10. Installing the required x86 libraries:
128
-
- Since the server runs as a 32-bit application, you need to enable 32-bit architecture support:
154
+
11. Installing the required packages:
155
+
- Since the server runs as a 32-bit application, you need to enable 32-bit architecture support and install screen:
129
156
130
157
```
131
158
sudo dpkg --add-architecture i386
@@ -136,10 +163,10 @@ Seek online guides or your hosting provider's documentation if you're unsure how
136
163
```
137
164
138
165
```
139
-
sudo apt install libc6:i386
166
+
sudo apt install libc6:i386 screen
140
167
```
141
168
142
-
11. Making the server executable:
169
+
12. Making the server executable:
143
170
- Change the permissions so the server can be executed (only required once!):
144
171
145
172
```
@@ -150,40 +177,52 @@ Seek online guides or your hosting provider's documentation if you're unsure how
150
177
sudo chmod +x omp-server
151
178
```
152
179
153
-
12. Starting the server:
154
-
- Use the following command to start the server in the background:
180
+
13. Starting the server:
181
+
- Use screen to start the server in a detachable session as the service account:
0 commit comments