1
0
mirror of https://github.com/citizenfx/cfx-server-data.git synced 2026-05-17 02:42:30 +08:00

reorganize resource directories

This commit is contained in:
astatine
2019-12-10 09:54:29 +01:00
Unverified
parent 60da977c02
commit 51cc79eda2
77 changed files with 7 additions and 1518 deletions
+11
View File
@@ -0,0 +1,11 @@
exports('runJS', (snippet) => {
if (IsDuplicityVersion() && GetInvokingResource() !== GetCurrentResourceName()) {
return [ 'Invalid caller.', false ];
}
try {
return [ new Function(snippet)(), false ];
} catch (e) {
return [ false, e.toString() ];
}
});