mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
Barebone start on lua > ts
This commit is contained in:
1 parent
e7f8043dd9
commit
c6e8baac56
2 files changed
+8
-13
No files matched your search
@@ -1,7 +1,7 @@
|
|||||||
setImmediate(() => {
|
let ESX = null;
|
||||||
emitNet("helloserver");
|
|
||||||
});
|
|
||||||
|
|
||||||
onNet("helloclient", (message) => {
|
setTick(() => {
|
||||||
console.log(`The server replied: ${message}`);
|
while (ESX === null) {
|
||||||
});
|
emit('esx:getSharedObject', (obj) => ESX = obj);
|
||||||
|
}
|
||||||
|
});
|
||||||
@@ -1,8 +1,3 @@
|
|||||||
onNet("helloserver", () => {
|
let ESX = null;
|
||||||
const _source = (global as any).source;
|
|
||||||
|
|
||||||
const test = (x) => x;
|
emit('esx:getSharedObject', (obj) => ESX = obj);
|
||||||
console.log(`Hello from ${_source}`);
|
|
||||||
|
|
||||||
emitNet("helloclient", _source, "i got your message!");
|
|
||||||
});
|
|
||||||
Reference in new issue
Block a user