Exports and Events
Client exports
OpenManagementNUI(shopName, context)
OpenManagementNUI(shopName, context)exports['envi-pawnshop']:OpenManagementNUI('Harrison\'s Pawn Shop')exports['envi-pawnshop']:OpenManagementNUI('Harrison\'s Pawn Shop', {
tab = 'exports',
source = 'my-resource'
})CloseManagementNUI()
CloseManagementNUI()IsManagementNUIOpen()
IsManagementNUIOpen()GetCurrentShopName()
GetCurrentShopName()SendUINotification(message, type, duration)
SendUINotification(message, type, duration)PlayUISound(sound)
PlayUISound(sound)CleanupExportDelivery()
CleanupExportDelivery()CleanupSupplierMission()
CleanupSupplierMission()IsSupplierMissionActive()
IsSupplierMissionActive()Example export usage
Open the UI only if it is not already open
Send a UI notification only when the player is inside Pawnshop UI
Get the current managed shop and branch your logic
Reset both mission types during a forced cleanup
Related pages
Last updated