Everything posted by alexguirre
-
Police Station Armory
You probably downloaded the wrong file, instead of uploading the new version I uploaded an old one, download again, it's fixed now.
- 127 comments
- 33 reviews
-
Wilderness Callouts
- 302 comments
- 66 reviews
-
RelationshipGroup
Did you check the example projects from RPH? You can download them here: http://ragepluginhook.net/Downloads.aspx?Category=2 This is the example about relationships, the comments in there explain how it works:
-
[WIP] Police Station Armory
Updated to Version 1.3.1 Changelog: Police Station Armory v1.3.1: Added support for RAGEPluginHook v0.39 Added new weapon components(drum magazines) from 'Further Adventures in Finance and Felony' update Police Station Armory Loadouts Creator v1.2.1: Added new weapon components(drum magazines) from 'Further Adventures in Finance and Felony' update
-
Spike Strips V
- 131 comments
- 20 reviews
-
Looking for Mentor?
Ped.IsDead only has a getter, you can't set its value. Use Ped.Kill() instead.
-
[SOLVED] Rage Native UI ProcessMenus() crash with new RPH
Released v1.4.1
-
[DEV TOOL | REL] RAGENativeUI
RAGENativeUI has been updated to version 1.4.1 Changelog Added support for RAGEPluginHook v0.39. Doesn't support previous versions. Common.GetPressedKeys() now returns an ICollection instead of an IList. Removed unnecessary BarTimerBar.Text property.
-
[SOLVED] Newline in RageNativeUI Menu
RAGENativeUI calculates the size necessary for the description box, I'm not too familiar with that code and probably '~n~' is messing it up. From a look at it, it seems that it gets the total words count, then loop through them and measure them and when it's needed inserts '\n'(new line). I don't think you could add new line, though you could try using System.Environment.NewLine or '\n' and see what happens. Can't you make the description with only one line? Also you could try to set UIMenu.FormatDescriptions to false and add the new lines yourself.
-
[SOLVED] Rage Native UI Refresh Menu Item List
Ah, you were talking about the BarTimerBar, in your first post you said it was the TextTimerBar. The Text property in BarTimerBar doesn't have any use, I don't know how that ended up there if it happened while I was porting that code or if it was the original author. Use the Label property instead, the Label is the text at the left and the Text(in TextTimerBar) is the text at the right. BarTimerBar.Text will be removed in the next version.
-
[SOLVED] Rage Native UI Refresh Menu Item List
Well, could you post the code you used? The timer bars code isn't too complex, you can see the Text propertie is very simple(https://github.com/alexguirre/RAGENativeUI/blob/master/Source/Elements/TimerBars.cs).
-
[SOLVED] Rage Native UI Refresh Menu Item List
Yes, use the Text property.
-
Please Help!
Did you read what I said? I said that you have to encapsulate that in a new GameFiber. public static void OnItemSelect(UIMenu sender, UIMenuItem selectedItem, int index) { GameFiber.StartNew(() => { // your code });
-
[SOLVED] Rage Native UI Refresh Menu Item List
*It won't be fixed, it will be a new feature That was intentionally made that way for some reason.
-
Please Help!
I doubt he could go to line 131 of Functions.cs and line 579 in CalloutManager.cs, because those are classes from LSPDFR @Fenix2525WOT the problem is that you can't sleep a FrameRender, OnItemSelect gets called in the FrameRender via RAGENativeUI, if you need to sleep it, encapsulate that code in a new GameFiber. Also after you finished using objects that implement the IDisposable interface(e.g. SoundPlayer) call the Dispose() method, or use the using statement: System.Media.SoundPlayer player = new System.Media.SoundPlayer(Megaphone.Properties.MegaphoneRes.CARONFIRE_1); player.Load(); player.Play(); player.Dispose(); //I recommend you to use the 'using' statement using(System.Media.SoundPlayer player = new System.Media.SoundPlayer(Megaphone.Properties.MegaphoneRes.CARONFIRE_1)) { player.Load(); player.Play(); } // This way you don't forget to dispose the object, it's done automatically.
-
[SOLVED] Rage Native UI Refresh Menu Item List
Not sure(I didn't write that part of the code, was Guadmaz who wrote it originally), this is what's done in the constructor: _items = new List<dynamic>(items);
-
[SOLVED] Rage Native UI Refresh Menu Item List
Ah ok, the only way possible currently would to delete and create it again as explained above. The reason for it is that RNUI creates a copy of the list you passed to the item so any changes you made to it won't be reflected in the item. Probably, I'll add some way to update the list in the item in the next version, if you have any other request you can create an issue in the Github repo.
-
[SOLVED] Rage Native UI Refresh Menu Item List
What do you mean with "refresh a list item"? In the latest version of RNUI UIMenu.Reset() has been added, it sets all list items indexes to 0 and unchecks all the checkboxes.
-
[SOLVED] Datatype for Pickup
There isn't any built-in class in RPH for pickups. If you aren't going to use a lot the pickups just use an uint as the handle or a PoolHandle, whatever you prefer. If you are going to use them a lot I recommend you to create a class, a little example of how to do it:
-
Please Help!
Use the InitializationFile class from RPH(http://docs.ragepluginhook.net/html/DEEB0B71.htm). Previous topic about the same thing:
-
Please Help!
Use UIMenuListItem.Index if you only need the current position. If you also need also the object at that position use UIMenuListItem.IndexToItem() and, as parameter, pass UIMenuListItem.Index.
-
Please Help!
No, RPH doesn't have the option to play external sounds, basically because it isn't needed, you have the SoundPlayer class in System.Media. And yes you have to put that using statement, otherwise you will need to write the complete name 'System.Media.SoundPlayer'.
-
Vehicle Modifacation
You can use Vehicle.Mods(http://docs.ragepluginhook.net/html/1D89D883.htm). The only modifications that are missing in that class are the added ones for the Lowriders update or any other recent update, for the the modifications that aren't there you will have to use SET_VEHICLE_MOD.
-
[SOLVED] Adding a property to an object
You have to create a class that inherits from the Ped class, then you can add any methods or properties to that class. And instead of using 'new Ped()' in your code you use 'new MyPed()' Example from RPH:
-
Updating Plugins for new Rage Version [SOLVED]
It should as simple as switching references unless the new RPH update has changed methods from existing methods that you used. In that case, after switching the reference, Intellisense will tell you where the errors are, then read the changelog to know what has been changed and fix it. And finally compile it.