Thanks I know how to add references in Visual Studio, but is there a way to just use NativeUI with a normal .cs file in Notepad++?

FelixTheBlackCat
View profile on GTA5-Mods.com »
Just a friendly coder :)
Posts made by FelixTheBlackCat
-
RE: Mission failed/passed UI texts in C#?
-
RE: Chrome tanker trailer. is it possible?
Try removing the texture image from the texture file and replacing it with something that's just transparent and then all you've gotta figure out is how to change the colour of the trailer (menyoo spooner mode maybe?)
-
Mission failed/passed UI texts in C#?
Not sure if this just uses a custom UI, but is there an easy way to call this in C# along with other full screen texts e.g. "Heist passed", "Mission Failed".
Something like this?
UI.Mission("~r~Mission Failed")
-
What's everyone working on today?
Right now I'm just working on fixes and features to my Bank Heists/ATM Robberies mod and a secret new project
-
RE: [C#] Detect cop mode?
@AHK1221 Thank you! Works perfectly. And as for the wanted level check, I was just first implementing it, that will be moved in a moment
-
RE: [C#] Detect cop mode?
@AHK1221 said in [C#] Detect cop mode?:
if (Function.Call(Hash.ARE_PLAYER_STARS_GREYED_OUT, Game.Player))
\ do stuff
Thanks for the help! However, I'm getting this issue:Cannot implicitly convert type 'void' to 'bool'
My code:
-
RE: [C#] Detect cop mode?
@ikt said in [C#] Detect cop mode?:
ARE_PLAYER_STARS_GREYED_OUT(Player player)
Sorry, I'm new to this - if I was to put that in my code how would it be?
if (ARE_PLAYER_STARS_GREYED_OUT(Player player) = True) { // do stuff
-
[C#] Detect cop mode?
How would I go about detecting what mode the cops are in? (Pursuit/Search modes)
As in,
if searchmode = true
do this -
C# - How would you script a command that only deletes police peds/vehicles?
I can't figure out how you'd delete all the police vehicles/peds in the world. Can anyone help?