Features & Details
π€ The Immersive Lawbook for Your Western Server!
A beautifully designed IC Lawbook as inventory item with authentic Western design, integrated penalty calculator, and full Sheriff mode.
β¨ Features
π For All Citizens
- Item-based β Lawbook as actual inventory item
- Authentic Western-Book Design β Leather binding, paper texture & gold accents
- Dynamic Lawbook with categories (Accordion-Style)
- Live Search β Filter laws by term or paragraph
- Favorites System β Mark important laws & find them quickly
π Sheriff Mode (for Law Enforcement)
- Penalty Calculator β Automatic calculation of fines & bounty
- Modifiers β Armed, fleeing, confession, repeat offender, etc.
- Private Notes β Personal notes for each law
- Print Function β Print tickets as items
- History & Statistics
- Custom Laws β Create/delete laws in-game
π§ Technical
- Discord Webhooks β Logging for tickets, created/deleted laws
- Fully Configurable β All laws, categories & penalties in config
- MySQL Storage β Favorites, notes & custom laws persistent
- Exports β Easy integration with other scripts
- Open Source Config & HTML β Design & laws fully customizable
π¦ Dependencies
- VORP Core
- VORP Inventory
- oxmysql
βοΈ Configuration
All settings in a simple config.lua:
-- Item System
Config.UseItem = true -- Item required?
Config.ItemName = "lawbook" -- Item name
-- Animation
Config.UseAnimation = true
Config.AnimationProp = "p_newspaper03x"
-- Tickets
Config.EnablePrintTicket = true
Config.TicketItemName = "ticket"
Config.PrintCooldown = 30
-- Sheriff Jobs
Config.SheriffJobs = {
"sheriff", "deputy", "marshal", "judge", "lawyer"
}
-- Repeat Offender Multipliers
Config.RepeatOffenderMultiplier = {
[1] = 1.0, -- 1st offense: 100%
[2] = 1.25, -- 2nd offense: 125%
[3] = 1.5, -- 3rd offense: 150%
[4] = 2.0, -- 4th offense: 200%
[5] = 2.5 -- 5+ offenses: 250%
}
Fully predefined laws included β Ready to use or customize!
π Exports
exports['cy-lawbook']:OpenLawbook()
exports['cy-lawbook']:CloseLawbook()
exports['cy-lawbook']:ToggleLawbook()
exports['cy-lawbook']:IsSheriff()
π Admin Commands
Command
Description
/givelawbook [id]
Give item to player
/cylawbook_reload
Reload config
/cylawbook_stats
Show statistics
Developed with β€οΈ by CY DevWorks