DarkRP.DatabaseInitialized

From DarkRP
This page refers to DarkRP 2.4.3. This information may be incorrect as of later versions.
Check here for a up-to-date list of hooks.

Syntax[edit]

DescriptionCalled when DarkRP has connected to the Database (either MySQL or SQLite)
Syntax
GAMEMODE:DatabaseInitialized()
Returnsnil

Examples[edit]

DescriptionDo something when the database is initialized
Code
hook.Add("DatabaseInitialized", "DB", function()
	MyMod.Initialize
end)
OutputInitialize your mod when the database connection exists