Defines the book_base base item that every book item derives from.
Using a book places it in the world as a cw_book entity owned by the player, and OnSetup turns the item's
bookInformation text into the HTML shown by the cwViewBook panel. Books are in the Literature category and sold
under the 3 access flag.
Summary
Methods
Turns the book's bookInformation text into HTML for the book window.
Line breaks become <br> and tabs four non-breaking spaces.
ITEM:OnUse(player, itemEntity)
shared gamemodes/cwhl2rp/plugins/books/plugin/items/sh_book_base.lua:19Places the book as a cw_book owned by the player where they are looking, within 192 units.
When used from the ground, the book takes the item entity's place and stays frozen if the item was.
Parameters
- player
- itemEntity
Returns
- Boolean
falsewhen the spot is too far away