mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
refactor: rename resource
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
-- pe-lualib
|
-- ox_lib
|
||||||
-- Copyright (C) 2021 Linden <https://github.com/thelindat>
|
-- Copyright (C) 2021 Linden <https://github.com/thelindat>
|
||||||
|
|
||||||
-- This program is free software: you can redistribute it and/or modify
|
-- This program is free software: you can redistribute it and/or modify
|
||||||
@@ -21,10 +21,10 @@ lua54 'yes'
|
|||||||
game 'gta5'
|
game 'gta5'
|
||||||
|
|
||||||
--[[ Resource Information ]]--
|
--[[ Resource Information ]]--
|
||||||
name 'pe-lualib'
|
name 'ox_lib'
|
||||||
author 'Linden'
|
author 'Linden'
|
||||||
version '1.4.0'
|
version '1.4.0'
|
||||||
repository 'https://github.com/project-error/pe-lualib'
|
repository 'https://github.com/overextended/ox_lib'
|
||||||
description 'A library of shared functions to utilise in other resources.'
|
description 'A library of shared functions to utilise in other resources.'
|
||||||
|
|
||||||
[[ Manifest ]]--
|
[[ Manifest ]]--
|
||||||
@@ -47,9 +47,8 @@ client_scripts {
|
|||||||
}
|
}
|
||||||
|
|
||||||
server_scripts {
|
server_scripts {
|
||||||
'version.lua',
|
|
||||||
'resource/**/server.lua',
|
'resource/**/server.lua',
|
||||||
'resource/**/server/*.lua'
|
'resource/**/server/*.lua'
|
||||||
}
|
}
|
||||||
|
|
||||||
provide 'lualib'
|
provide 'pe-lualib'
|
||||||
|
|||||||
6
init.lua
6
init.lua
@@ -8,7 +8,7 @@ end
|
|||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
-- env
|
-- env
|
||||||
local lualib = 'pe-lualib'
|
local lualib = 'ox_lib'
|
||||||
local file = IsDuplicityVersion() and 'server' or 'client'
|
local file = IsDuplicityVersion() and 'server' or 'client'
|
||||||
|
|
||||||
-- micro-optimise
|
-- micro-optimise
|
||||||
@@ -27,7 +27,7 @@ local function loadFile(self, module)
|
|||||||
|
|
||||||
if chunk then
|
if chunk then
|
||||||
local err
|
local err
|
||||||
chunk, err = load(chunk, ('@@pe-lualib/%s/%s.lua'):format(module, file))
|
chunk, err = load(chunk, ('@@ox_lib/%s/%s.lua'):format(module, file))
|
||||||
if err then
|
if err then
|
||||||
error(('\n^1Error importing module (%s): %s^0'):format(dir, err), 3)
|
error(('\n^1Error importing module (%s): %s^0'):format(dir, err), 3)
|
||||||
else
|
else
|
||||||
@@ -118,7 +118,7 @@ function ClearInterval(id)
|
|||||||
intervals[id] = -1
|
intervals[id] = -1
|
||||||
end
|
end
|
||||||
|
|
||||||
-- pe-lualib
|
-- ox_lib
|
||||||
-- Copyright (C) 2021 Linden <https://github.com/thelindat>
|
-- Copyright (C) 2021 Linden <https://github.com/thelindat>
|
||||||
|
|
||||||
-- This program is free software: you can redistribute it and/or modify
|
-- This program is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
Reference in New Issue
Block a user