AddModel
Adds target options to all entities of specified model(s).
Syntax:
Bridge.Target.AddModel(models, options)
Parameters:
models
(number|table) - Model hash or array of model hashesoptions
(table) - Array of target option configurations
Example:
local Bridge = exports['community_bridge']:Bridge()
Bridge.Target.AddModel(GetHashKey("prop_gas_pump_1a"), {
{
label = "Refuel Vehicle",
icon = "fas fa-gas-pump",
onSelect = function(entity)
-- Start refueling process
end
}
})
Last updated