Drawtext UI
Step-by-step installation guide, common issues & solutions, code snippets, error codes, config previews, locales previews, SQL previews, and changelogs; all in 1 easily accessible place.
Translate
INSTALLATION GUIDE
1. Unzip the cd_drawtextui.zip
folder and place this folder in your server's resource folder.
2. Add the resource to your server start config: ensure cd_drawtextui
. The name of the folder must not be changed or the resource will not function correctly.
How to use it?
This can be triggered from the server or client. But this is a client event.
Multiple examples are posted below, choose one best suited to your experience level. The easiest way for you to implement this into your resources would be to use one of the examples below as a template and copy and paste your code into it.
Show the UI
Hide the UI
TriggerEvent('cd_drawtextui:ShowUI', 'show', TEXT_HERE)
TriggerEvent('cd_drawtextui:HideUI')
Example 1 : This is how to implement the UI for a single location.
Example 2 : This is how to implement the UI while doing a for loop for multiple locations in 1 thread.
Example 3 : This is a more advanced method of the
example 2
above. This is more customisable and can handle all of the keypresses in said resource in a single thread.
Is the resource not working as expected?
Make sure the name of the folder is
cd_drawtextui
.Check the server console and the in-game F8 console for errors.
If all else fails, contact the Codesign Team in the Codesign Discord.
Last updated