Installation
Add new text UI to Config.TextUI in Config.lua
-- The `id` needs to be unique for each text UI
id = {
-- `coords` specifies the 3D location of the text UI using vector3 coordinates
coords = vector3(-55.2261, -1097.0719, 26.6223),
-- `markerDist` is the distance at which the marker for the text UI becomes visible
markerDist = 15.0,
-- `displayTextDist` is the distance at which the text UI's text becomes visible
displayTextDist = 6.0,
-- `distInteract` represents the distance within which a player can interact with the text UI
distInteract = 3.0,
-- `markerColor` defines the color of the marker
markerColor = '#ffffffff',
-- `keys` is a list of available key interactions for the text UI
keys = {
{
-- `key` is the string representation of the key to press
key = 'E',
-- `keyNum` is the numerical code of the key
keyNum = 38,
-- `text` is the description displayed when the key is available for interaction
text = 'Open Catalogue',
-- `backgroundColor` defines the background color of the key text
backgroundColor = '#05d1ec',
-- `textColor` defines the color of the text displayed for the key
textColor = '#ffffff',
-- `executeCommand` is the command to execute upon key press
executeCommand = '',
-- `triggerEvent` defines the event to trigger when the key is used
triggerEvent = {
-- `triggerName` is the name of the event
triggerName = 'fjsf_vehicleshop:openVehicleShop',
-- `args` are arguments passed to the trigger event
args = {'PDM'}
}
},
{
key = 'G',
keyNum = 47,
text = 'Open License Shop',
backgroundColor = '#05ecbeff',
textColor = '#ffffff',
executeCommand = '',
triggerEvent = {
triggerName = 'fjsf_vehicleshop:openLicenseShop',
args = {}
}
}
}
}Last updated