File size: 384 Bytes
7e9dc27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--[[
	Project: SA-MP API
	Author: LUCHARE
	Website: BlastHack.Net
	Copyright (c) 2018
]]

local module = {ffi = require 'ffi'}

function module.safely_include(mod)
	if not package.loading then package.loading = {} end
	if package.loading[mod] == nil then
		package.loading[mod] = true
		local v = {require(mod)}
		package.loading[mod] = nil
		return unpack(v)
	end
end

return module