mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +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(() => {
|
||||
emitNet("helloserver");
|
||||
});
|
||||
let ESX = null;
|
||||
|
||||
onNet("helloclient", (message) => {
|
||||
console.log(`The server replied: ${message}`);
|
||||
});
|
||||
setTick(() => {
|
||||
while (ESX === null) {
|
||||
emit('esx:getSharedObject', (obj) => ESX = obj);
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user