Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/13/18 in Posts

  1. This occurs due to player stamina hitting zero, resulting in hp being lost. Below is the workaround for this in both C# and JavaScript. C# //Subscribe the Tick event Events.Tick += Tick; public void Tick(List<Events.TickNametagData> nametags) { RAGE.Game.Player.RestorePlayerStamina(1.0F); } JavaScript mp.events.add('render', () => { mp.game.player.restoreStamina(100); });
    2 points
  2. 2 points
  3. ohhhh ty! got my stamina 💪 restored 😎 😏
    2 points
  4. RAGE Multiplayer 0.3.7 introduces client-side C# scripting. Thanks to an incoming game update announcement today it goes into the stable branch with client updates that make it easier (you will have to back up your game files that are going to update still) to stay on the latest supported version until a compatibility update is done (previous time it has been made in a day, we can't give ETA though as the amount of changes is not known yet). STABLE RELEASE CHANGELOG (changes done from 0.3.7 Testing Release) Note: while there are no known security issues in the latest build, for now, it has been decided to not enable client-side C# by default in the Stable Release due to potential security concerns. Enabling it as pretty easy: just create "enable-clientside-cs.txt" file in your RAGE Multiplayer root folder. Added: Events.OnEventTriggeredByKey Added: Events.EnableKeyRemoteEvent Added: Events.OnEntityDataChangeByKey Added: Events.EnableKeyDataChangeEvent Added: Performance improvements thanks to utilizing some .NET Core features Added: Colshape.OnEnter (cancellable via OnPlayerEnterColshape) Added: Colshape.OnExit (cancellable via OnPlayerExitColshape) Added: Checkpoint.OnEnter (cancellable via OnPlayerEnterCheckpoint) Added: Checkpoint.OnExit (cancellable via OnPlayerExitCheckpoint) Added latest C# standard support Enhancements over providing secure .NET Core environment (@server devs: no worries for partial reflection restrictions introduced - that's going to be whitelisted per local contexts in future updates) .NET Core has been updated to our own fork based on .NET Core 2.2.0 Added: vehicle.nosActive Added: vehicle.nosAmount Peds are using entity streaming events now instead of what it used to be Fixed reported client-side JS regressions Fixed reported C# bugs Updating 0.3.6 resources Client-side: Update all the entityDataChange events to proper mp.events.addDataHandler: // old: mp.events.add("entityDataChange", (entity, dataName, value) => { if(dataName === "mydata") { HandleIt(); } }); // new: mp.events.addDataHandler("mydata", (entity, value) => { HandleIt(); }); Client-side: Update ped stream in eventing (streamIn param got deprecated in favor of regular entity streaming events). Here's a function to reproduce 0.3.6 mp.peds.new behavior: mp.peds.newLegacy = (hash, position, heading, streamIn, dimension) => { let ped = mp.peds.new(hash, position, heading, dimension); ped.streamInHandler = streamIn; return ped; }; mp.events.add("entityStreamIn", (entity) => { if(entity.streamInHandler) { entity.streamInHandler(entity); } }); Downloads Client* (includes Windows server) Linux server Linux C# API *if you already have RAGE Multiplayer installed, it will update itself on the next launch
    1 point
  5. Guten Abend Community, ich bin kein Mann von allzu vielen Worten. Hier ist ein kleiner Steckzettel zu meiner Person und meinen Skills. Gerne könnt ihr mich bei Intreresse per PN kontaktieren und weiteres erfragen :). Name: Florian Alter: 27 Jahre Beruf: Fachinformatiker für Systemintegration Skills: JavaScript (Server- und Clientseitig) (My)SQL mit vorheriger Datenbankmodellierung (3NF) HTML/CSS und dazugehörige weitere Webdesignsprachen Serveradministration Aufbau und Vernetzung von Netzwerken Bare-Metal-Virtualisierung Viele liebe Grüße Florian
    1 point
  6. epic )))))) may you run far and fast for eternity
    1 point
  7. https://photos.app.goo.gl/2mvs66cmpkAa8Kn98 this is with xampp.
    1 point
  8. @Legend why is mp.storage not right for you? I don't believe there is any other method. What I think you want would be a security issue
    1 point
  9. sorry men, don't believe you reinstall the game if you're legal from the store
    1 point
  10. Please, never again refer to members of this community and forum as 'RP'ers' We are ragers 😡😡😡😡😡 No one is going to disagree with this men, maybe better ask do you think it is worth the developers time to add this over other features
    1 point
  11. Our Lord and Beast George pushed another epic update.
    1 point
  12. You can write tests for that things
    0 points
×
×
  • Create New...