Skip to content

Maximus7474/lb-phone-simcards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LB Sim Cards

ToDo:

  • Locale integration
  • Add Other Frameworks
  • Add Other Inventories

Note

This resource is still in beta phase, breaking changes can occur without notice.

If you want to contribute please refer to the Contributing Guidelines before opening an issue or pull-request.

Setup

  1. Download and install ox_lib

  2. Add the following code into @lb-phone/client/custom/functions/functions.lua at the end of the file:

CreateThread(function ()
    local timeout = 50
    while SetPhone == nil and timeout > 0 do
        Wait(5)
        timeout = timeout - 1
    end
    if timeout <= 0 then return print('^1ERROR^7 Unable to create ^5SetPhone^7 export') end
    exports('SetPhone', SetPhone)
end)

Item Setup:

Ox Inventory Item:

    ['simcard'] = {
        label = 'Sim Card',
        weight = 50,
        stack = false,
        close = true,
        consume = 0,
        server = { export = "lb-phone-simcards.simcard" },
    }

ESX:

INSERT INTO `esx-scripting-server`.`items` (`name`, `label`) VALUES ('simcard', 'Sim Card');

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Sponsor this project

Contributors 3

  •  
  •  
  •  

Languages