Skip to content

Commit 609145d

Browse files
authored
Merge pull request #6 from pysamp/fixes&improvements
Fixes and improvements
2 parents 39dd2b2 + 8f957b3 commit 609145d

File tree

11 files changed

+319
-253
lines changed

11 files changed

+319
-253
lines changed

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,23 @@ git clone https://github.com/pysamp/PySAMP-streamer.git
1515
## Example
1616

1717
```python
18-
from pystreamer import register_callbacks
19-
from pystreamer.dynamicobject import DynamicObject
2018
from pysamp import on_gamemode_init
19+
import pystreamer
20+
from pystreamer.dynamicobject import DynamicObject
2121

2222
@on_gamemode_init
2323
def on_ready():
24-
register_callbacks()
25-
global obj
26-
obj = DynamicObject.create(994, 1161.73767, -1741.43555, 13.06450, 0.0, 0.0, 0.0)
24+
pystreamer.register_callbacks()
25+
global my_object
26+
my_object = DynamicObject.create(
27+
994,
28+
1161.73767,
29+
-1741.43555,
30+
13.06450,
31+
0.0,
32+
0.0,
33+
0.0
34+
)
2735

2836
@DynamicObject.on_moved
2937
def on_dynamic_object_moved(object: DynamicObject):

0 commit comments

Comments
 (0)