Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/20/20 in all areas

  1. const fetch = require('node-fetch'); const url = 'http://api.weatherapi.com/v1/current.json?key=c5aab2441e9248e49ee81903201910&q=bucharest'; setInterval(() => { fetch(url) .then(res => res.json()) .then(json => { let code = json.current.condition.code; switch (code) { case 1000: mp.world.weather = 'EXTRASUNNY' break; case 1003: mp.world.weather = 'CLOUDS' break; case 1006: mp.world.weather = 'CLOUDS' break; case 1066: mp.world.weather = 'SNOW' break; case 1135: mp.world.weather = 'FOGGY' break; case 1183: mp.world.weather = 'RAIN' break; case 1189: mp.world.weather = 'RAIN' break; case 1273: mp.world.weather = 'THUNDER' break; default: mp.world.weather = 'CLEAR' } console.log("[WEATHER-SYNC] Server weather is synced with Bucharest (" + json.current.condition.text + ")"); }) .catch(function(err){ console.log("There was an error running the weather.js script ! ", err) }); }, 600000) Requirements: npm i request npm i request-promise In the API call change the 'q' parameter to the city you want to sync to, and provide your API key from WeatherAPI The script syncs the weather once evry 10 minutes, you can change that by modifying the 'setInterval' loop.
    1 point
  2. It's not cancelled and it's still being (privately) developed. It's not the highest priority though and we won't give you an ETA.
    1 point
    Se você tiver erro ao tentar usar o Character Creator, na linha 537 está acusando erro ao digitar o comando /creator, o código vai estar da seguinte forma: if (active) { if (creatorCamera === undefined) { creatorCamera = mp.cameras.new("creatorCamera", creatorCoords.camera, new mp.Vector3(0, 0, 0), 45); creatorCamera.pointAtCoord(creatorCoords.cameraLookAt); creatorCamera.setActive(true); } está dando erro porque o createCoords está faltando parâmetro, eu coloquei da seguinte forma: if (active) { if (creatorCamera === undefined) { creatorCamera = mp.cameras.new("creatorCamera", creatorCoords.camera, new mp.Vector3(0, 0, 0), 45); creatorCamera.pointAtCoord(creatorCoords.cameraLookAt, new mp.Vector3(0, 0, 0), 45); creatorCamera.setActive(true); } Eu fiz essa alteração e usei a versão 18w48a do NativeUi, funcionando normal. Text in Brazilian Portuguese
    1 point
  3. В этой ветке форума добрые люди выкладывают списки
    1 point
  4. Vulfleem если ты не разбираешься то зачем отвечаешь? Ты даже не можешь сделать проверку на админку, но лезешь отвечать. Leone: Да клиентская часть будет доступна всем, но кто мешает провести обфускацию кода? Сам хостинг взломать практически не возможно, если это конечно не хостинг каких нибудь школьников которые решили срубить денег. Взломать могут только твой аккаунт. И на счёт Pawn, это компилируемый язык, но однако декомпилировать его не составит труда, примерно так будет выглядеть декомпилированый pawn код. Все названия функций и переменных изменены. Тоже самое будет и с твоим js кодом если ты его обфусцируешь.
    1 point
×
×
  • Create New...