Everything posted by MayoInYourMouth
-
How to use STP and Traffic policer without duplication?
Personally, I use STP Menus more than Traffic Policer, so I recommend going though Traffic Policer keybinds and giving most things a modifier key like Left Control and using STP.
-
Self Radio Preferences?
So for the past hour or two, I have been trying to find songs to put on Self radio that would be good for patrol. I know this is purely subjective and different from person to person. But, What music do you listen to while out on patrols? Favorite Songs? Recommendations?
-
Opening Multiple Menus? (Apologies if I am over posting.)
Any chance i could VC you on discord or something? My code has changed a bit since I last posted.
-
Opening Multiple Menus? (Apologies if I am over posting.)
So, I'm still trying to kinda perfect this menu thing I have going. I got the menus work with the help of you all. But I've run into the issue where after I close a UI menu, and come back to open it, it opens another one. I've tried using _menuPool.CloseAllMenus();, but when I open the menu again it layers it on top of the other, so the text gets more and more bold everytime I open the menu. My code can be found here -> https://pastebin.com/hvmUgcfN I apologize if the code is sloppy. Once I fix this issue, I should be able to move onto adding proper functionality to the menus and make a proper release. PS. You guys are awesome. I got my last answer pretty quick and again, I do apologize for posting so much, I'm a straight up noob.
-
C# Help. UI Ignoring Logic?
Dude, you are awesome! Thanks a bunch. I hadn't thought of it like that when I was typing the code. A thousand times, thank you.
-
C# Help. UI Ignoring Logic?
So apologies if my script here seems super messy or just plane wrong, I am super new to coding in C#. I've been having issues with the UI for a couple hours and I finally kinda got it working. The script right now is supposed to open up a menu whenever a player gets close enough to a Vector3 location. (Left out that part of the script so it wouldn't be too much) So I can get the menu to activate perfectly fine. That part pretty much works as intended. But for some reason the "else if " line wants to fire too, even when the logic is wrong. Pretty sure this is user error but I'm honestly at a loss. Any help would be awesome! Code can be found below. https://pastebin.com/jRXPFrrp
-
Understanding RageNativeUI Questions.
So, I'm trying to work on making a menu with RageNativeUI from scratch and I've wasted hours watching Youtube, and reading through the 10 pages of documentation I could find aaaand I'm practically pulling my hair out. Could someone explain the uses of RefreshIndex and ProcessControl? I can't figure out where I need to use them and why.
-
Storing Vector3 Coordinates in an array?
So, apologies if I post this in the wrong section or anything like that, I'm still kinda new to all this. I am trying to store a few map coordinates in an array in c# and I'm having a bit of trouble figuring out how to store them. Below is what I tried a second ago, but I've been messing with it for about 15 minutes and im lost. What is the proper way to do this? Vector3[] hotelLocation = new Vector3[3]; hotelLocation[1] = (436.8632f, 216.6585f, 104.1104f); Edit: So I figured out what I was doing wrong and I did fix it. The solution I found is below. Vector3[] hotelLocation = new Vector3[3]; hotelLocation[1] = new Vector3(436.8632f,216.6585f,104.1104f); It feels super redundant. If there is a better way, someone please let me know.
-
How do you make a plugin?
For sure, I'll give it a shot. I come from a basic understanding of LUA, so C# and project oriented programing in general is a pain to wrap my head around.
-
How do you make a plugin?
So, I've been playing LSPDFR for quite a while and I enjoy everything about it. Love the community, love the amount of work that a lot of content creators put into their work, and I love the creativity behind a lot of plugins and vehicle models. It wasn't until recently that I started using Basic needs by Ashishcw -> https://www.lcpdfr.com/downloads/gta5mods/scripts/21785-basic-needs/ I like the idea behind the mod a hole lot, personally, I feel like with a couple more things added, more bug fixes, and some assets, this plugin could be HUGE. Then I got to thinking about how I would improve on the plugin if I was the creator of it and found myself thinking of a whole bunch of cool ideas. I looked online for guides on how to make LSPDFR plugins and only wound up finding how to make callouts. Maybe I'm not looking hard enough or maybe google hates me. But I was wondering if anyone had any resources or documentation they could point me to, I'd love to get involved and start making contributions to LSPDFR. EDIT: I do know about https://docs.ragepluginhook.net/ But I'm talking about things aside from this. Guides, tutorials, tips, etc.