-
Notifications
You must be signed in to change notification settings - Fork 98
Home
iAmir edited this page Feb 17, 2025
·
64 revisions
Language: English, Russian
- Create a directory called
plugins
inside of the server directory if one does not already exist. - Place the plugin file (
streamer.dll
orstreamer.so
) inside of the directory that was just created. - Add the following line to
server.cfg
so that the plugin will load the next time the server starts:-
plugins streamer.dll
(Windows) -
plugins streamer.so
(Linux)
-
- On Windows, add
streamer.inc
to thepawno\include
folder. - Add the following line to any of the scripts the server is running:
#include <streamer>
The Windows version requires the Microsoft Visual C++ 2015 Redistributable Package (x86).
-
Download and install the following:
- CMake (3.0+)
- C++ Compiler
-
Clone the repository:
git clone https://github.com/samp-incognito/samp-streamer-plugin.git
-
Navigate to the cloned respository (
cd samp-streamer-plugin
). -
Update the submodules:
git submodule update --init --recursive
-
Enter the following commands:
mkdir build cd build
If on Windows:
cmake ..
If on Linux (So you don't accidentally build a Debug version):
cmake .. -DCMAKE_BUILD_TYPE=Release
Then on either of those platforms:
cmake --build . --config Release
-
Navigate to the
bin
directory (cd bin
). Thestreamer.dll
orstreamer.so
file should be placed here when the plugin has finished compiling.
sampgdk Support
samp-streamer-plugin-sampgdk-invoke can be used to invoke this plugin's natives as well as hook its callbacks from within another plugin that uses sampgdk.