Lnd-hostagecard

lnd-hostagecard

A simple script where after using the card, a hostage appears in the place of our choice

Requirements

  • ox lib

Paste this into

  • ox_inventory/modules/items/client
Item('hostagecard', function(data, slot)
    exports.ox_inventory:useItem(data, function(data)
        TriggerEvent('lnd-hostagecard:client:useHostageCard', data)
    end)
end)

Item

 ['hostagecard'] = {
        label = 'Hostage Card',
        weight = 10
    }

Download

Preview

7 Likes

nice work :heart:

1 Like

thanks :wink:

1 Like

Hi, I have a problem when inserting ox_inventory/modules/items/client the inventory is broken

Item('hostagecard', function(data, slot)
    exports.ox_inventory:useItem(data, function(data)
        TriggerEvent('lnd-hostagecard:client:useHostageCard', data)
    end)
end)

try now i make mistake in post

1 Like

Now it works perfectly thanks

1 Like

nice :heart_eyes:

1 Like

nice work