Remmi_Jefferson
-
Posts
16 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Posts posted by Remmi_Jefferson
-
-
How to transfer data from a client to a browser?
-
В 17.12.2019 в 20:11, mbsnero сказал:
// Client Side mp.events.callRemote("sendDataToServer", data); // Server Side mp.events.add("sendDataToServer", function (player, data) { // Something do with data & player variables });//client mp.events.callRemote("PlayerData", player); mp.gui.chat.push(player.age); //server mp.events.add({ 'PlayerData' : player => { player.age = "test" });So?
-
mp.keys.bind(0x32, true, function(player, vehicle) { vehicle.setEngineOn(true, true, true) });Don't work
-
How to find out the coordinates of peds, preferably with an example
-
if(notifications) { notifications = null; } else{ var notifications = mp.browsers.new("package://notifications/index.html"); setTimeout(() => { notifications.destroy(); notifications = null; }, 5000) }Hi, the browser is called only once, the second time nothing happens
-
2 минуты назад, Xabi сказал:
The null should be assigned AFTER the destroy() line, don't just replace it.
That's what @MrPancakers told you to do and how it's supposed to work.
if(notifications) { notifications = null; } else{ var notifications = mp.browsers.new("package://notifications/index.html"); setTimeout(() => { notifications.destroy(); notifications = null; }, 5000) }
Does not work
-
if(notifications) { notifications = null; } else{ var notifications = mp.browsers.new("package://notifications/index.html"); setTimeout(() => { notifications.destroy(); notifications = null; }, 5000) }So?
-
Hi, the browser is called only once, the second time nothing happens
if(notifications) { notifications.destroy(); } else{ var notifications = mp.browsers.new("package://notifications/index.html"); setTimeout(() => { notifications.destroy(); }, 5000) } -
-
-
mp.keys.bind(0x71, true, function() { if(mp.gui.chat.show(true)){ mp.gui.chat.show(false); } else if(mp.gui.chat.show(false)){ mp.gui.chat.show(true); } });
Does not work
-
mp.keys.bind(0x71, true, function() { if(mp.gui.chat.show(true)){ mp.gui.chat.show(false); } else if(mp.gui.chat.show(false)){ mp.gui.chat.show(true); } });Does not work
-
Hi, please tell me how to make interiors, with an entrance like GTA: Online. Without pickups and teleporters. In other words, the interior inside the house
-
Hi, do not tell me how to transfer the value of a variable from the client to the server?

Cleint -> Browser
in Scripting
Posted
'GetVar' : (test_server) => { test_client = test_server; mp.gui.chat.push('Значение: '+test_server) var hud = mp.browsers.new('package://hud/index.html'); hud.execute(`document.getElementById("level").innerHTML = ${test_client};`); }If you replace $ {test_client} with "any text", then everything works, but does not want a variable