fixed the event handler registration stuff

This commit is contained in:
Luuk van Oijen committed 2023-11-13 16:57:45 +01:00
1 parent a0db8aa8be
commit e781bbac8e
4 files changed
+63 -35

No files matched your search

+7 -2
View File
@@ -1,8 +1,13 @@
print("test from lua")
print("Player count: " .. MP.GetPlayerCount())
function onPluginLoaded()
function onPluginLoaded2()
print("HI!")
end
MP.RegisterEventHandler("onPluginLoaded", "onPluginLoaded")
function onPlayerAuthenticated2(name)
print("hi welcome mista " .. name)
end
MP.RegisterEventHandler("onPluginLoaded", "onPluginLoaded2")
MP.RegisterEventHandler("onPlayerAuthenticated", "onPlayerAuthenticated2")