Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/11/19 in Files

  1. Version 1.0.4

    4086 downloads

    Most of the server developers (ones that don't patiently wait for *something large*, though this resource is powerful enough) use their own server-side object attachments implementation that represents some large JSON with all the object and attachment information. This resource lets you cache "static attachments" in the client-side code so thanks to efficient utilization of the shared data it just uses a small shared variable to do the attachment processing without any need to create server-side objects nor send its data. For example, if you want to attach a specific object to specific ped bone with spefic bone offset and object rotation, this will only use a ~4-8 byte shared variable keeping it accurate. User-made implementations I have seen before usually take ~100 bytes per an object. API: Client-side mp.attachmentMngr.register(attachmentId, model, bone, offset, rotation) mp.attachmentMngr.addLocal(attachmentId) (synced!) mp.attachmentMngr.removeLocal(attachmentId) (synced!) API: Server-side player.addAttachment(attachmentId, remove) player.hasAttachment(attachmentId) Example Resource There's an example resource in /client-packages/epic-attachments folder. It lets you toggle attachments (there are like 30 attachments) using a NativeUI-based menu. Thanks to root for his contributions made to the example resource.
    4 points
  2. Version 1.0.0

    1131 downloads

    This resource adds a light control menu to toggle the state of various lights in GTA V. Use /lcmenu command to access the menu. Since this is a new feature of RAGEMP, light IDs don't have names/descriptions yet. (Maybe people will document them later, who knows...) You might also want to check the screenshots for a preview of various light states. Installing Download & install the latest NativeUI if you haven't already, this script needs it Drop the lightcontrol folder to your server's client_packages Add require('lightcontrol') to client_packages/index.js All done Q: "But I still have weird lights/fog around the city buildings?" See:
    1 point
×
×
  • Create New...