ESX Migration

jv-notify includes an optional compatibility layer for ESX, allowing existing ESX scripts to use jv-notify without any code changes.

All calls to ESX.ShowNotification will be redirected internally to jv-notify.

Requirements

  • ESX framework

  • jv-notify resource

ensure jv-notify

ESX Notification Mapping

ESX.ShowNotification

ESX usage:

ESX.ShowNotification('Hello world', 'info', 5000, 'Title')

Mapped to jv-notify:

exports['jv-notify']:JVNotify('Title', 'Hello world', 5000, 'info')

ESX Compatibility Code

Add the following code to your ESX shared or client utility file.

Last updated