Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/24/19 in Posts

  1. I've seen a lot of people in the past wanting an updated vehicleData.json and no one posted an updated version. There is also a script posted here somewhere on the forums that is supposed to generate an updated version of this json, but it doesn't works because the script is generating data from server-side API which gets data from the json... so it's a json loop, it creates a new json with what's on the current json file you have. This one is generated by me, using my own client-side script which actually gets data from natives, it was tested and works (it has all the available vehicles from wiki): https://pastebin.com/yC3BzFzw
    1 point
  2. California Roleplay is a medium roleplaying server set in the Los Santos and Blaine County area. We originally created this community for a previous multiplayer modification called GTA:MP. We are looking forward to hopefully soon opening our server to the public and making Rage:MP our permanent home. Website: http://ca-rp.com
    1 point
  3. Can someone explain how I can import a resource (NativeUI) to client. My current setup: I have been writing my gamemode using a typescript boiler plate (https://github.com/MarkCavalli/rage-server-start-template) So files in app folder client get compliled to client_packages and same for server into packages However when I try to require a third party script (NativeUI) I get an error TypeError Point is not a constructor I'm importing it into the client via: const NativeUi = require('../libs/nativeui.js') mp.events.add("PlayerJoin", () => { const Menu = NativeUI.Menu; const Point = NativeUI.Point; const UIMenuListItem = NativeUI.UIMenuListItem; const ItemsCollection = NativeUI.ItemsCollection; const ui = new Menu("Test UI", "Test UI Subtitle", new Point(50, 50)); ui.AddItem(new UIMenuListItem( "List Item", "Fugiat pariatur consectetur ex duis magna nostrud et dolor laboris est do pariatur amet sint.", new ItemsCollection(["Item 1", "Item 2", "Item 3"]) )); }) Can anyone help me? I'm completely stuck for ideas on how I can get this to work.
    0 points
  4. I`m having the same trouble too. NativeUI jusn`t can`t works. I wish someone can help us
    0 points
×
×
  • Create New...