Events

Notifications

Client nh:client:notify

Argument
Type
Description
Example

title

string

A title for the notification

"Vehicle Spawned"

description

string

The main text of the notification, with support for new lines with: \n

"You have successfully spawned an Adder"

time

integer

The time the notification should display in milliseconds

5000

style

string

The style of the notification

"info", "error", "warning", "success", "message" and "announcement"

location

string

The location of the notification

"left", "center", "right"

TriggerClientEvent("nh:client:notify", 1, "Vehicle Spawned", "You have successfully spawned an Adder", 5000, "success", "center")

Update Peacetime

Server nh:server:update_peacetime_manual

Argument
Type
Description
Example

area

string

The area code you wish to manage

"bc"

state

string

The state to update the area to

"cooldown", "disabled"

time

integer

The time this should last for in minutes (required for cooldown/hold)

5 or 0

player

string

The person who set the priority

"Michael Scott" or "Console"

TriggerEvent("nh:server:update_peacetime_manual", "bc", "cooldown", 5, "console") -- on cooldown
TriggerEvent("nh:server:update_peacetime_manual", "bc", "disabled", 0, "console") -- disable

Update Priority

Server nh:server:update_priority_manual

Argument
Type
Description
Example

area

string

The area code you wish to manage

"bc"

state

string

The state to update the area to

"available", "cooldown", "hold"

time

integer

The time this should last for in minutes (required for cooldown/hold)

5 or 0

player

string

The person who set the priority

"Michael Scott" or "Console"

Update AOP

Server nh:server:update_aop_manual

Argument
Type
Description
Example

areas

string

The area codes you wish to manage, you can specify multiple separated by a comma

"ss, gs"

player

string

The person who set the priority

"Michael Scott" or "Console"

Refresh Custom Elements

Client nh:client:refresh_custom_elements

Argument
Type
Description
Example

player

string

The area codes you wish to manage, you can specify multiple separated by a comma

"ss, gs"

Update Custom Element

Server nh:server:update_custom_element

Argument
Type
Description
Example

id

string

The identifier for the custom element

"unit_counts"

innerHTML

string

The InnerHTML to update in the custom element.

Last updated