Implementation
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
👍 Icons get from here: https://fontawesome.com/search?o=r&m=free
🌈 Color get from here: https://g.co/kgs/QWXhVf
exports["vms_notify"]:Notification("TITLE", "MESSAGE", TIME, "#HEX_COLOR", "ICON")
Parameters
title
string
"HOUSE"
message
string
"You entered the house."
time
number
5000
hex_color
string
"#5feb34"
icon
string
"fa-solid fa-house"
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
title
string
"ANIMATION"
message
string
"Do you want to dance with vames?"
hex_color
string
"#25dbf7"
icon
string
"fa-solid fa-user"