mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-22 08:08:43 +00:00
closing tui no longer crashes + onShutdown event
This commit is contained in:
1 parent
669e061fdf
commit
6ed714b863
7 files changed
+39
-33
No files matched your search
@@ -5,6 +5,10 @@ function onPluginLoaded()
|
||||
print("HI!")
|
||||
end
|
||||
|
||||
function onShutdown()
|
||||
print("BYE!")
|
||||
end
|
||||
|
||||
function onPlayerAuthenticated(joined_name, role, is_guest, identifiers)
|
||||
print("hi welcome mista " .. joined_name)
|
||||
print("u a guest? " .. tostring(is_guest))
|
||||
@@ -36,5 +40,6 @@ function onPlayerDisconnect(pid, name, identifiers)
|
||||
end
|
||||
|
||||
MP.RegisterEventHandler("onInit", "onPluginLoaded")
|
||||
MP.RegisterEventHandler("onShutdown", "onShutdown")
|
||||
MP.RegisterEventHandler("onPlayerAuth", "onPlayerAuthenticated")
|
||||
MP.RegisterEventHandler("onPlayerDisconnect", "onPlayerDisconnect")
|
||||
Reference in new issue
Block a user