Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/10/19 in Posts

  1. I used to run stunt servers on MTA and later SAMP, so thats what i'll start working on at some point for R:MP too. Bscly just freemode but the map is packed full of stunt area's, and you earn points and money by doing stunts, that you can then spend on all sorts of things Before i can do this i need to make (or somebody needs to make) an object streamer though, so i can have 100's to 1000's of objects placed all over the game world without users having to load all of those, they would just have to load the ones within a certain distance, and unload again automatically etc.
    1 point
  2. You need to open the client_packages inside the server-files then here open or create a file call it 'index.js' inside this file insert the scripts that you are going to use for example: require('./SomeScript.js'); Now create the SomeScript.js and it is now going to run clientside scripts inside. To send events from clientside to serverside use https://wiki.rage.mp/index.php?title=Events::callRemote and then inside your C# resource use https://wiki.gtanet.work/index.php?title=Getting_Started_with_Remote_Events to receive the function and the passed arguments, The other way around you do from your C# resource (Client).TriggerEvent() then you catch it inside your javascript file that you've just created by using the mp.events.add like you would when using any clientside event.
    1 point
×
×
  • Create New...