DirkScripts Logo

Login With FiveM

Login

πŸ“š Dirk Lib
β€Ί
Modules
β€Ί

print

Print

ℹ️ Shared Module - This can be used by both clients and the server

lib.print

Print colour-coded information to the console. Each type is accessed as a method on lib.print.

ℹ️ The debug type only prints when the resource has debug mode enabled via scriptSettings.

lua
lib.print.info("Server started successfully")
lib.print.warn("Config value missing, using default")
lib.print.error("Failed to load resource")
lib.print.debug("Variable x =", x)
MethodDescription
lib.print.info(...)General information
lib.print.warn(...)Warnings
lib.print.error(...)Errors
lib.print.debug(...)Debug output (only in debug mode)
Parameter TypeRequiredDescription
_typeStringtrueType of print - info, warn, error or debug
...AnytrueDebug info

lib.print.addType

Register a custom print type

lua
lib.print.addType(type, prefixText, color, condition)
Parameter TypeRequiredDescription
_typeStringtrueUnique print type
prefixStringtrueWhat should be prefixed in front of the debug
conditionFunctiontrueCallback to check if it should print

Copyright Β© 2026 DirkScripts.

Not affiliated with or endorsed by Rockstar North, Take-Two Interactive, or any other rights holders. FiveM is a copyright and registered trademark of Take-Two Interactive Software, Inc.
Our checkout system is provided by Tebex Limited, who manage payment processing, product delivery, and billing support. Prices shown in currencies other than GBP are approximate conversions updated daily. All purchases are processed in GBP, so the final amount charged may vary depending on your bank or payment provider’s exchange rate.