mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
17 lines
349 B
Lua
17 lines
349 B
Lua
-- Creates exports from values assigned to lib
|
|
-- Hacky workaround for Lua Language Server support
|
|
--- Alias for `exports.ox_lib`
|
|
|
|
lib = setmetatable({}, {
|
|
__newindex = function(self, name, fn)
|
|
exports(name, fn)
|
|
rawset(self, name, fn)
|
|
end
|
|
})
|
|
|
|
function lib.setClipboard(value)
|
|
SendNUIMessage({
|
|
action = 'setClipboard',
|
|
data = value
|
|
})
|
|
end |