DarkRP.DatabaseInitialized

From Official DarkRP Wiki
Jump to: navigation, search
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

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

Examples

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