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.
-
Download and install ox_lib
-
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)
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');