targetModel
Description
Adds an interactive target to all entities matching a specific model hash or name.
Parameters
model(string|number): Model hash or name (e.g.,"prop_atm").options(table): Same as inps.boxTarget.
Return Value
None
Example Use Case
ps.targetModel("prop_atm", {
{
label = "Use ATM",
icon = "fa-solid fa-money-bill",
action = function()
TriggerEvent("atm:open")
end
}
})Last updated