Exports
Create3DTextUI
Creates a 3D text interface at specified coordinates for interaction
exports['fjsf_3dtextui']:Create3DTextUI('id', {
coords = vector3(-55.2261, -1097.0719, 26.6223),
markerDist = 15.0,
displayTextDist = 6.0,
distInteract = 3.0,
markerColor = '#ffffffff',
keys = {
{
key = 'E',
keyNum = 38,
text = 'Open Catalogue',
backgroundColor = '#05d1ec',
textColor = '#ffffff',
executeCommand = '',
triggerEvent = {
triggerName = 'fjsf_vehicleshop:openVehicleShop',
args = {'PDM'}
}
},
{
key = 'G',
keyNum = 47,
text = 'Open License Shop',
backgroundColor = '#05ecbeff',
textColor = '#ffffff',
executeCommand = '',
triggerEvent = {
triggerName = 'fjsf_vehicleshop:openLicenseShop',
args = {}
}
}
}
})
Parameters:
coords
: Location for the 3D textmarkerDist
,displayTextDist
,distInteract
: Distances for visibility and interactionmarkerColor
: Color of the markerkeys
: Defines keys for interaction with respective events
ChangeCoords
Changes the coordinates of an existing 3D text UI
exports['fjsf_3dtextui']:ChangeCoords('id', vector3(-55.2261, -1097.0719, 26.6223))
Parameters:
coords
: New location for the specified 3D text
Remove3DTextUI
Removes the 3D text UI
exports['fjsf_3dtextui']:Remove3DTextUI('id')
Parameters:
No parameters required, only the ID of the text UI
ToggleTextUI
Toggles the visibility of the 3D text UI
exports['fjsf_3dtextui']:ToggleTextUI('id', false)
exports['fjsf_3dtextui']:ToggleTextUI('id', true)
Parameters:
id
: The identifier for the text UItrue/false
: Show (true
) or hide (false
) the UI
Last updated