DarkRP.DatabaseInitialized
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]
Description | Called when DarkRP has connected to the Database (either MySQL or SQLite) |
---|---|
Syntax |
GAMEMODE:DatabaseInitialized()
|
Returns | nil |
Examples[edit]
Description | Do something when the database is initialized |
---|---|
Code | hook.Add("DatabaseInitialized", "DB", function()
MyMod.Initialize
end)
|
Output | Initialize your mod when the database connection exists |