Skip to main content
ug-target declares provide 'ox_target'. Resources that depend on ox_target start against it, and exports.ox_target calls reach ug-target.

Supported exports

addGlobalPed, addGlobalVehicle, addGlobalObject, addGlobalPlayer, addGlobalOption, their remove forms, addModel, removeModel, addEntity, removeEntity, addLocalEntity, removeLocalEntity, addSphereZone, addBoxZone, addPolyZone, removeZone, zoneExists, disableTargeting and isActive.

How options translate

Other fields of an option are passed back in the data table, as ox_target does.
serverEvent handlers trust what the client sends. When you touch a script, move its effect to a server action so the server checks distance and conditions.