Client
CreateNPC
exports['rip_dialog']:CreateNPC(name, model, position, info, options)exports['rip_dialog']:CreateNPC("testnpc", "a_m_m_hillbilly_01", vector4(2768.531, 1391.26, 24.52, 82.20), {
label = "Talk",
icon = "fas fa-user",
title = "Farmer Shop",
content = "Hello! How can i help you sir?"
}, {
options = {
{
icon = "fas fa-seedling",
label = "I want to buy plant tools",
params = {
type = "action",
event = function()
exports.ox_inventory:openInventory('shop', {type = 'farmer'})
end,
args = {}
}
},
{
icon = "fas fa-angle-right",
label = "i'm just looking around"
},
},
})ChangeNpcOptions
DeleteNpc
openMenu
closeMenu
Last updated