Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/01/19 in all areas

  1. Hi everyone! Two words about me: My name is Mark. Im working as junior fronted developer. What is this? My open source role play server. I think, it can help some new developers learn and start a project. I'll develop it via github: https://github.com/MarkCavalli/rageserver I will be glad to see any improvements: code review, pull requests, language improvements (My native language is Russian). Also you can quickly connect and test it How to install: https://github.com/MarkCavalli/rageserver Features: Log In/Sign Up Module Server saves player's position on disconnect. (/save) command for development simulate disconnect. MoneyAPI Module -bank account and tax account. - ATMs Character Creator Module Jobs: - Orange Collector Businesses: - Clothing Shops Future plans: - New jobs
    1 point
  2. Is there a way letting the running server reloading my javascript files? npm run watch always rebuilds index.js on changes but the server doesn't auto-re-load this file. Is there a way to enable an event with maybe params?
    1 point
  3. Version 1.0.0

    6659 downloads

    For install just copy files to your server.Don't forget edit index.js into client_packages if you have more resources. Read the LICENSE.txt befor use.
    1 point
  4. Version 2.1.0

    2331 downloads

    Now with 200% more color. Clientside Functions: mp.game.ui.notifications.show(message, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200]) mp.game.ui.notifications.showWithPicture(title, sender, message, notifPic, icon = 0, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200]) Serverside Functions: player.notify(message, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200]) player.notifyWithPicture(title, sender, message, notifPic, icon = 0, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200]) As Events: BN_Show(message, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200]) BN_ShowWithPicture(title, sender, message, notifPic, icon = 0, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200]) Example: // Clientside mp.game.ui.notifications.show("Normal message with custom text and background color.", false, 15, 20); mp.game.ui.notifications.showWithPicture("New Message", "Facebook", "You got some more of that data?", "CHAR_FACEBOOK", 1, false, 0, 139); // Serverside player.notify("This message is red which means you're doing something wrong.", false, 6); player.notifyWithPicture("Title", "Ammu-Nation", "Ammunation has all the equipment you need to protect your family from the evils of a liberal society! Fixed, mounted, and shoulder-held submachine guns. Mortars! Surface-to-air and all manner of heat-seeking missiles!", "CHAR_AMMUNATION"); Icons: You can specify an icon ID for picture notifications, here's a list of them: 0, 4, 5, 6 = No Icon 1 = Speech Bubble 2 = Message 3 = Friend Request 7 = Arrow 8 = RP 9 = Money Notes: textColor and bgColor parameters want a HUD color ID which you can find here. (it is a bit outdated now though) You can find notification pictures here. If you can't see picture notifications, you must enable Phone Alerts from Settings > Notifications > Phone Alerts. This script changes player.notify on serverside.
    1 point
  5. Version 1.0.1

    572 downloads

    (EN) This script allow you to play emergency alert sound (2 sounds: tornado siren, alert siren), coming soon: amber alert with sound&pop-up (FR) Ce script vous permet de déclencher des sirènes d'alertes (sirène tornade, sirène d'alerte), à venir: alerte enlèvement avec son&popup ----- HOW TO INSTALL ----- 1) Unpack RAGEMP Alert v0.1 2) Drop the content of "client_packages" folder inside your client folder 3) Drop the content of "packages" folder inside your server folder 4) Add in your server index.js : require('./Alert/sAlert'); 5) Add in your client index.js : require('./Alert/cAlert'); 6) Do not forget to change link of mp.browsers.new in Alert/cAlert.js if needed ----- HOW TO USE ----- /alert tornado {repeat time} --> {repeat time} FROM 1 TO 9 TIMES Duration: EACH time: 9sec (min: 9sec, max: 81sec) /alert siren {repeat time} --> {repeat time} FROM 1 TO 9 Duration: START: 5sec / ACTIVE: 12sec (repeat from 1 to 9) / END: 13sec (min: 30sec, max: 126sec) /alert siren stop --> stop the siren immediatly if activated (duration: 13sec) ----- DEMO ----- Tornado Siren: Alert siren: Amber alert (coming soon):
    1 point
  6. Version 1.0.1

    1216 downloads

    Installing Put the files you downloaded in their respective places Add require('indicators') to client_packages/index.js All done Controls Numpad 4 - Toggle left indicator Numpad 6 - Toggle right indicator
    1 point
  7. If you're in development environment just use nodemon $ nodemon --watch packages --watch client_packages --exec \"./server.exe\"
    1 point
  8. You can use a process manager for that (pm2): npm i -g pm2 # install pm2 cd /your/ragemp/server-files pm2 start server.exe --watch # starts the server.exe in watch mode. it will restart on any file changes inside the server-files folder pm2 stop server --watch # its important to stop it with the --watch flag otherwise it will still restart. pm2 logs server # will show you the logs
    1 point
  9. Managed to get it to work in the current version. The script is not always finding the elevation at the waypoint position though (getGroundZFor3dCoord returning 0), if that happens it will not teleport you and output a chat message. Also I am using a command (/tp) instead of a keybind. Code (a bit messy, since for development purposes):
    1 point
  10. Hello Guys, Today i would like to introduce my first simple resource to the public people. Vehicle indicators Vehicle indicators are the main thing in role-play. Without it you can't role-play while driving or you can cause accidents. So i did that simple resource to give some help to the community You can now download it by the following link: Download Don't forget to require it in your client-side by doing: require('indicators.js') Here is a Gist to see source code Feel free to update, copy, or change in the code. I hope you enjoy the resource, if you find any bugs please post in that topic.
    1 point
×
×
  • Create New...