Usage
Play tutorial from client side: exports.Domas_Tutorials:StartTutorial(tutorialId)
Player tutorial from server side: TriggerClientEvent("DomasTutorials:StartTutorial", IdOfThePlayer, IdOfTheTutorial)
Example how I've made test command as seen in showcase (client side):
RegisterCommand('starttutorial', function(source, args) local tutorialId = tonumber(args[1]) if tutorialId then exports.Domas_Tutorials:StartTutorial(tutorialId) else print("Invalid usage. Correct usage: /starttutorial [tutorialId]") end end, false)Was this page helpful?