1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-31 09:57:14 +01:00
SqMod/bin/demo/boot.nut

18 lines
1.4 KiB
Plaintext
Raw Normal View History

// Compute the path to the scripts folder (use the `ScriptFolder` option from `sqmod.ini`)
ScriptsPath <- SqSysPath.Working().Append(SqCore.GetOption("ScriptFolder"));
// Log it for debug purposes
SqLog.Inf("Booting script from: %s", ScriptsPath.String);
// Load the command manager
SqCore.LoadScript(true, SqSysPath(ScriptsPath.String).Append("cmd.nut"));
// Load event scripts (delay them `true` since we don't need them executed right away)
SqCore.LoadScript(true, SqSysPath(ScriptsPath.String).Append("events").Append("blip.nut"));
SqCore.LoadScript(true, SqSysPath(ScriptsPath.String).Append("events").Append("checkpoint.nut"));
SqCore.LoadScript(true, SqSysPath(ScriptsPath.String).Append("events").Append("custom.nut"));
SqCore.LoadScript(true, SqSysPath(ScriptsPath.String).Append("events").Append("keybind.nut"));
SqCore.LoadScript(true, SqSysPath(ScriptsPath.String).Append("events").Append("object.nut"));
SqCore.LoadScript(true, SqSysPath(ScriptsPath.String).Append("events").Append("pickup.nut"));
SqCore.LoadScript(true, SqSysPath(ScriptsPath.String).Append("events").Append("player.nut"));
SqCore.LoadScript(true, SqSysPath(ScriptsPath.String).Append("events").Append("server.nut"));
SqCore.LoadScript(true, SqSysPath(ScriptsPath.String).Append("events").Append("vehicle.nut"));
// Load command scripts (delay them `true` since we don't need them executed right away)