Implementation

👍 Icons get from here: https://fontawesome.com/search?o=r&m=free

🌈 Color get from here: https://g.co/kgs/QWXhVf

Notification

exports["vms_notify"]:Notification("TITLE", "MESSAGE", TIME, "#HEX_COLOR", "ICON")

Parameters

PARAMETERTYPEEXAMPLE

title

string

"HOUSE"

message

string

"You entered the house."

time

number

5000

hex_color

string

"#5feb34"

icon

string

"fa-solid fa-house"

Question

local question = exports['vms_notify']:Question(
    'TITLE', 
    'MESSAGE', 
    '#HEX_COLOR', 
    'ICON'
)
Citizen.Await(question)
if question == 'y' then -- export return 'y' when player accept and 'n' when player reject
    print('ACCEPTED')
else
    print('NOT ACCEPTED')
end

Parameters

PARAMETERTYPEEXAMPLE

title

string

"ANIMATION"

message

string

"Do you want to dance with vames?"

hex_color

string

"#25dbf7"

icon

string

"fa-solid fa-user"

Last updated