PySAMP-streamer
Streamer plugin handler for PySAMP
Installing
-
To install, you need to download the streamer plugin. After that you must put
streamer.dll
into your server folder (serverfolder/plugins
). -
After that, download the repository and put the pystreamer folder in your server folder.
Example
from pystreamer import register_callbacks
from pystreamer.dynamicobject import DynamicObject
from pysamp import on_gamemode_init
@on_gamemode_init
def on_ready():
register_callbacks()
global obj
obj = DynamicObject.create(994, 1161.73767, -1741.43555, 13.06450, 0.0, 0.0, 0.0)
@DynamicObject.on_moved
def on_dynamic_object_moved(object: DynamicObject):
...
Important
Change the order in which plugins are loaded
plugins streamer PySAMP
Otherwise, loading PySAMP before streamer leads to various bugs
Thanks to
- Incognito for Streamer plugin
- denNorske, habecker, Cheaterman for developing PySAMP
- Me for handler