Jump to content

Leaderboard

Popular Content

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

  1. Version 1.2.0

    3536 downloads

    This plugin lets you "fix" RPFs of your dlcpacks on a server start in a completely automated way. Yes, it does support recursive RPFs! Installation Extract all archive files to the server root folder. No dependencies required, just the latest RAGE Multiplayer server. Usage Put your dlcpacks into /source_dlcpacks/ folder in the server root folder. Once you start the server it puts the proper dlcpacks into /client_packages/dlcpacks/. Credits Neodymium - GTA 5 modding research rootcause - testing
    10 points
  2. Version 1.0.2

    3830 downloads

    This resource probably won't get future updates, check out Currency API instead. Easy to use money system for your server. It handles saving&loading and provides you a custom data key to get/set a player's money. Installing Put the files you downloaded in their respective places Add require('moneyapi') to client_packages/index.js Open packages/moneyapi/constants.js and put your MySQL info (maybe edit the settings too while you're at it...) Congrats, you're all done Settings (packages/moneyapi/constants.js): startingMoney use this setting to change how much money players start with. Default: 0 autoSaveInterval use this setting to change how frequent auto saving happens (in minutes), you can set it to 0 if you want to disable auto saving. Default: 5 Example You can access a player's money from customMoney property using either .data.customMoney or .getVariable("customMoney"). mp.events.addCommand("smoney", (player, _, money) => { // set the player's money to the specified amount money = parseInt(money); if (!isNaN(money)) { player.data.customMoney = money; } else { player.outputChatBox("Invalid amount specified."); } }); mp.events.addCommand("cmoney", (player, _, amount) => { // change the player's money by the specified amount amount = parseInt(amount); if (!isNaN(amount)) { player.data.customMoney += amount; } else { player.outputChatBox("Invalid amount specified."); } }); mp.events.addCommand("buyhp", (player) => { // refill a player's health for $100 if (player.data.customMoney >= 100) { player.health = 100; player.data.customMoney -= 100; player.outputChatBox("Refilled health for $100."); } else { player.outputChatBox("You don't have $100."); } }); Notes First of all, thanks to @Donboo for their MySQL example which you can find here. This script won't save while the server is shutting down but will save player money when they disconnect or when autosave happens. This script uses an int(11) field to store a player's money. If you think $2147483647 isn't enough, you might want to change it. For some reason, MoneyAPI HUD elements will be off position in 1914x1080 windowed resolution. This script won't update the money display on the ESC/pause menu. (This note is obsolete if you're using the GameHUD version)
    1 point
  3. Version 1.0.1

    3667 downloads

    This resource will sync basic things for you such as the doors, windows, tyres, engine, dirt, and lock status. Note that this resource incorporates the disabling of automatic engine toggle. If you get in a car you can only start it by script commands. There are several API functions provided for you to use. Read up on how to use this resource here; https://wiki.gtanet.work/index.php?title=Getting_started_with_Basic_Vehicle_Sync_Resource
    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. Learning NodeJS won't hurt, you can do back end and front end programming aswell
    1 point
  6. You are just crazy man. Pawn excellent knowledge. Hahahahha
    1 point
  7. Pawn (excellent knowledge) ok thats epic
    1 point
  8. Сменили, приятной игры
    1 point
×
×
  • Create New...