๐Ÿ”งFunctions

You can change notification and help text drawing here.

Client side
functions = {}

functions.showNotification = function(type, message)
    SetNotificationTextEntry('STRING')
    AddTextComponentString(message)
    DrawNotification(type, false)
end

functions.displayHelpText(text)
    AddTextEntry('helpText', text)
    DisplayHelpTextThisFrame('helpText', false)
end
Server side
functions = {}
-- You can set your sound resource here
functions.playSound = function(source, coords)
    exports['ultra-3dsound']:playSound(source,'./burgal.mp3', coords,  vec3(0,0,0))
end

functions.stopSound = function(source)
    exports['ultra-3dsound']:stopSound(source)
end

Last updated