Example without ped

local id = exports['weInteract']:addInteractionPoint({
    coords = vec3(0.0, 0.0, 0.0), -- Coordinates for the interaction point
    dist = 3.0, -- Triggerable distance and when the interaction appears
    key = 'E', -- Key to trigger the interaction
    message = 'GARAGE', -- Message displayed next to the key
    icon = 'warehouse', -- Icon displayed next to the message (optional)
    onPress = function() print('open Garage') end -- Action triggered when the key is pressed
})

Last updated