Search the Community

Showing results for tags 'client-side'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RAGE Multiplayer
    • Announcements
    • Discussion
    • Suggestions
    • RDR2 Multiplayer
  • Scripting
    • Scripting
    • Resources
  • Community
    • Support
    • Servers
    • Media Gallery
  • Non-English
    • Русский - Russian
    • Français - French
    • Deutsch - German
    • Espanol - Spanish
    • Română - Romanian
    • Portuguesa - Portuguese
    • Polski - Polish

Categories

  • Scripts
  • Gamemodes
  • Libraries
  • Plugins
  • Maps
  • Tools

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Facebook


Youtube


Skype


Web


VK

Found 15 results

  1. On 'client_packages/index.js': var loadingBrowser = mp.browsers.new("package://loading.html"); mp.gui.cursor.show(true, true); Based on my analysis, this should show the HTML content to the client as it enters the server, however, nothing happens.
  2. When working with the client side, I encountered errors and do not know how to fix this. When connecting to my server, the following errors occur: JS # 10 startup error, data storage error # 4. Left only one line on the client: mp.gui.chat.push('Hello World')
  3. Is there a function to change the Head Overlay on the client side? I want to change the ped but I don’t see the result, although I found this function in the wiki on the client-side functions. Wiki link: https://wiki.rage.mp/index.php?title=Player::setHeadOverlay
  4. Version 1.0.1

    175 downloads

    Internet radio over colshapes using CEF. Scope of application: custom clubs, interiors. Default location is the Galileo Observatory (behind the monument). Default radio station - Wacken Radio (DE). Installation: I. Put server files to: server-files\packages\yourGameMode II. Add require('./rStreamColshapes'); to your server's index.js III. Put client files to: client_packages then edit your client's index.js and add require('./rStream'); To change radio stream url, edit index.html here: client_packages\cef\rStream\index.html GitHub
  5. adri1

    Clock speedometer

    Version 1.1.0

    486 downloads

    Clock speedometer JS client-side
  6. Los

    CEF Boilerplate

    CEF Boilerplate This is a boilerplate that will make your development proccess easier. It has a workflow that works like a website development, but, adapted for UI development. Built with Gulp + Webpack + Babel + SASS + ES6 Features: Focused on performance, lightweight. Made to be maintainable and SCALABLE. Small, medium or big projects, doesn't matter how much components, it will be easy to maintain. Easy for integrating any framework like Vue or React. Hot reload Local development: Run npm install Run gulp The index.html inside the src folder, works like a summary. This is the default page that will open when you start the development environment. You can customize it. The others folders is just like any other web project structure. Building for production: Run npm install Run gulp production It will make all the minifying proccess, create bundles and will send it to ../../client_packages/dist folder by default. If you want to change it, go to gulpfile.js/config.json and change the destProd value. Integrating I strongly recommend you to use the ragemp-start typescript by @ekoozu Using with ragemp-starter: Clone this repo into the src folder Run the npm install on it Run gulp production Done. Creating a browser: mp.browsers.new("package://dist/html/boilerplate.html") That's all, folks. Feel free to open an issue or answer this thread if you have any question. Download it on GitHub
  7. В целях изучения разбираю примеры уже готовых серверов, и появился вопрос, как лучше поступать с UI через CEF ? Использовать единый html в котором собрать все элементы интерфейса и управлять ими изнутри, те в одном html будет к примеру компонент и чата и спидометра. Или инициализировать несколько CEF, допустим в один элемент CEF закинуть chat.html, и по верх него еще один элемент с CEF только уже с spedometr.html ? В чем плюсы и минуты того и другого?
  8. Hey, just started with RageMP scripting and wonder if its possible to let the Game load the compiled Assemblys instead of the raw .cs files for C# client-side scripts. If its not possible, are there any plans to support this in future releases? Thanks in advance and thanks for RageMP - comparing to some other MP mods the development feels way more "natural"!
  9. Hey there. I started developing a client-side user interface, and I had problems with custom fonts. I included my custom fonts in the CSS file: @font-face { font-family: Gabriela; src: url(../Fonts/Gabriela-Regular.ttf); } @font-face { font-family: FontAwesome; src: url(../Fonts/fontawesome-webfont.ttf); } * { font-family: Gabriela; } .dws-input::before { font-family: FontAwesome; content: "\f007"; position: absolute; font-size: 30px; padding: 25px 0 0 0px; color: white; } In the browser, all the fonts look great, but when I started the game, all the fonts changed to standard ones. What have I done wrong? Maybe I incorrectly connected fonts? Thanks in advance
  10. Mayo93

    Client-side GUI

    Hello. I have a problem to make a GUI on client side, which will trigger a function in server side file. Can you explain me step by step how to make this on example: Write cmd "/gui" and in this moment on my screen will be displayed a simple window GUI with one button and when I click it, he trigger server side function with message line: console.log("It works"). It will be very helpful for me to understand how works rage mp triggering and gui design. Or if this is too much for you community, will be okay to tell me, which functions should I use to make this. Greetings Mayo
  11. Hello, since I'm from sa-mp i obviously only know the server-side scripting. I already did some stuff like MySQL-connection, different disconnecting messages (depending on exitType) and so on. To get all the abilities from RageMP I (of course) also want to use the client-side scripting. First, I just want to get myself in and do stuff like mp.gui.chat.colors = true; mp.game.player.setHealthRechargeMultiplier(0.0); Both things are client-side functions. So, how to start with client-side scripting, which file(s) do I need to create and where to put them? Thanks a lot. //edit Oh wow! It's simple as that. Just need to create .js files inside the server-files/client-packages/ directory. That's it.
  12. Короче пишу вот такой вот код на клиент-сайде: mp.game.player.setMoney(100); Выходит ошибка: mp.game.player.setMoney(100) is not a function При чём объект найден, а сама функция нет. На Вики прописана https://wiki.rage.mp/index.php?title=Player::setMoney, как player.setMoney(), но так она тоже не работает, не найден объект.
  13. Короче, в CEF можно вывести все. Но есть ли какие-то диалоги по типу диалога Ammunation или Pay'n'spray? Это через CEF не стоит делать. Ранее было упоминание, что будет GUI из GTA Online, но как его запустить, если оно есть?
  14. How to activate cursor? I found function cursor.visible but how it to use? cursor.visible=true cursor.visible(true); /* These strings is not working */
  15. Hello, I started some days ago scripting a new server, lot of information is missing or need to be found in some external examples, but anyway, the most part I found it. But when started with clientside, I can't understand the way it works. So then, from JS called from HTML, you need to use mp.triggers(). Ok. If you call from (for example) client package "Test", file "Index.js", you can use mp.game.player object to access to the local player that triggered that event, ok. But the weird thing is, and my questions are : 1. In the Wiki, there are two sections on player commands, the top one (related with entities) and the bottom one ( related with ?? ), this last ones ( bottom) works well with mp.game.player, but the other ones I can't get them working ( apparently doesn't exists). So the first question is, how to access the first ones. 2. The second one is, if I want to sync a local even, for example an animation, from each local clientside player, do I have to do like this?? : /* Event call from server to all players */ mp.events.add('playerStartedAnim', function(targetPlayer, animation1, animation2){ /* loop through players until find the one that wants to play animation */ mp.players.forEach(function(pl){ if(pl.name == targetPlayer){ /* play animation ??*/ pl.taskPlayAnim(animation1,animation2,8.0,1,-1,49,1.0,false,false,false); } }); }); Well, above code is not working because the question 1, so take it like an example for what I'm asking. Thanks a lot for reading and thanks for advance.