Move code from case to func;

Add events for cars: onCarDelete, onCarReset;
Minor updates;
This commit is contained in:
2023-07-20 01:54:52 +03:00
parent 147e76e089
commit b6038ee6d0
3 changed files with 202 additions and 158 deletions

View File

@@ -28,7 +28,9 @@ class EventsSystem:
"onPlayerJoin": [],
"onChatReceive": [],
"onCarSpawn": [],
"onCarDelete": [],
"onCarEdited": [],
"onCarReset": [],
"onServerStopped": [],
}
self.__async_events = {
@@ -36,7 +38,9 @@ class EventsSystem:
"onPlayerJoin": [],
"onChatReceive": [],
"onCarSpawn": [],
"onCarDelete": [],
"onCarEdited": [],
"onCarReset": [],
"onServerStopped": []
}