Defines the Notepad item of the Notepad plugin, which places a blank cw_notepad entity owned by the player where
they are looking.
Summary
Methods
OnDrop(player, position)shared
Called when the notepad is dropped; does nothing, so it can be dropped freely.
Places a blank
cw_notepad owned by the player where they are looking, within 192 units.Methods
ITEM:OnDrop(player, position)
shared gamemodes/cwhl2rp/plugins/notepad/plugin/items/sh_notepad.lua:57Called when the notepad is dropped; does nothing, so it can be dropped freely.
Parameters
- player
- position
ITEM:OnUse(player, itemEntity)
shared gamemodes/cwhl2rp/plugins/notepad/plugin/items/sh_notepad.lua:20Places a blank cw_notepad owned by the player where they are looking, within 192 units.
When used from the ground, the notepad 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