3 - Export Setup
Below are all available client-side exports exports['SimpleNotify']:Info(title, message, duration, sound) exports['SimpleNotify']:Success(title, message, duration, sound) exports['SimpleNotify']:Error(title, message, duration, sound) exports['SimpleNotify']:Warning(title, message, duration, sound) Below is an example of how you would hook up notifications client-side. -- Info notification exports['SimpleNotify']:Info('System', '~b~Welcome to the city!', 6000, true) -- Success notification without sound exports['SimpleNotify']:Success('Garage', '~g~Vehicle stored successfully!', 8000, false) -- Error notification exports['SimpleNotify']:Error('Bank', '~r~Insufficient funds!', 7000, true) -- Warning notification exports['SimpleNotify']:Warning('Inventory', '~y~Low ammo remaining!', 6000, true) Below are all available server-side exports exports['SimpleNotify']:Info(source, title, message, duration, sound) exports['SimpleNotify']:Success(source, title, message, duration, sound) exports['SimpleNotify']:Error(source, title, message, duration, sound) exports['SimpleNotify']:Warning(source, title, message, duration, sound) Below is an example of how you would hook up notifications server sided. -- Send info notification exports['SimpleNotify']:Info(source, 'Server', '~b~Welcome to the server!', 6000, true) -- Send success notification without sound exports['SimpleNotify']:Success(source, 'Garage', '~g~Keys received successfully!', 8000, false) -- Send error notification exports['SimpleNotify']:Error(source, 'Garage', '~r~This vehicle is already owned.', 7000, true) -- Send warning notification exports['SimpleNotify']:Warning(source, 'Inventory', '~y~Your inventory is almost full!', 6000, true)
Below are all available client-side exports
exports['SimpleNotify']:Info(title, message, duration, sound)
exports['SimpleNotify']:Success(title, message, duration, sound)
exports['SimpleNotify']:Error(title, message, duration, sound)
exports['SimpleNotify']:Warning(title, message, duration, sound)Below is an example of how you would hook up notifications client-side.
-- Info notification
exports['SimpleNotify']:Info('System', '~b~Welcome to the city!', 6000, true)
-- Success notification without sound
exports['SimpleNotify']:Success('Garage', '~g~Vehicle stored successfully!', 8000, false)
-- Error notification
exports['SimpleNotify']:Error('Bank', '~r~Insufficient funds!', 7000, true)
-- Warning notification
exports['SimpleNotify']:Warning('Inventory', '~y~Low ammo remaining!', 6000, true)Below are all available server-side exports
exports['SimpleNotify']:Info(source, title, message, duration, sound)
exports['SimpleNotify']:Success(source, title, message, duration, sound)
exports['SimpleNotify']:Error(source, title, message, duration, sound)
exports['SimpleNotify']:Warning(source, title, message, duration, sound)Below is an example of how you would hook up notifications server sided.
-- Send info notification
exports['SimpleNotify']:Info(source, 'Server', '~b~Welcome to the server!', 6000, true)
-- Send success notification without sound
exports['SimpleNotify']:Success(source, 'Garage', '~g~Keys received successfully!', 8000, false)
-- Send error notification
exports['SimpleNotify']:Error(source, 'Garage', '~r~This vehicle is already owned.', 7000, true)
-- Send warning notification
exports['SimpleNotify']:Warning(source, 'Inventory', '~y~Your inventory is almost full!', 6000, true)