Book

Open book

TriggerEvent('le-crafting:client:openBook', book)

book = the name you have given in the config.lua. Exemple for the book burgershot from client side:

TriggerEvent('le-crafting:client:openBook', 'burgershot')

The config.lua for this exemple:

Config.Book = {
    burgershot = { -- Name of the book to open
        title = "BurgerShot",   -- Title to display on the book
        recipes = {'burgershot_bleeder', 'burgershot_patatos', 'burgershot_patatob', 'burgershot_goatwrap', 'burgershot_bigking'}, -- All recipes that this book will show
    },
}

Last updated