- 
                Notifications
    You must be signed in to change notification settings 
- Fork 0
Home
        Sakız edited this page Nov 28, 2024 
        ·
        1 revision
      
    Welcome to the testrep wiki!
asdasd
asdads
`Core.Functions.CreateUseableItem(config.walkie_item, function(source, item) local newbattery = 100 if config.walkie_battery then local player = QBCore.Functions.GetPlayer(source) local inv = 'content-' .. player.PlayerData.citizenid if item.metadata.battery == nil then if config.inventory == "core" then exports.core_inventory:updateMetadata(inv, item.id, { battery = 100 }) end newbattery = 100 else newbattery = item.metadata.battery - 1 if newbattery <= 0 then newbattery = 0 end if config.inventory == "core" then exports.core_inventory:updateMetadata(inv, item.id, { battery = newbattery }) end end end
TriggerClientEvent("skz_radiostations:openradio", source, newbattery, item.id)
end)`
- asdads
- asdasd
- asd
- asd
- asd
asd
