Bhavin2707
Members
-
Joined
-
Last visited
Reputation Activity
-
Bhavin2707 reacted to Stealth22 in world events/random eventsYou have to write them yourself, there is no API class that's usable right now.
What I do is, I have a GameFiber that runs in the background (much like a regular RPH plugin), and uses a timer/stopwatch to trigger the events at a certain interval. Note that you need to do a series of checks, to make sure the player isn't already in a pursuit or a callout, make sure that any peds you get from the world are valid/actually exist, etc.
I wrote my own base class for ambient events, which handles those checks, and any other code that is common to all the events I create. See my inheritance example on the GitHub repo...its for callouts, but the principle is the same.
However, all of that being said, I would recommend that you get yourself comfortable with the inner workings of C# and .NET first. Rome wasn't built overnight...you should be comfortable with the concepts of programming before attempting a project like this.
-
Bhavin2707 reacted to Albo1125 in Scripthookvdotnet or ragehookActually, you can write in any CLI compliant language. That includes C++/CLI too.
I'd recommend using C#, however.
-
Bhavin2707 reacted to LukeD in Scripthookvdotnet or ragehookThis question had nothing to do with getting mods to work, it was asking if developing LSPDFR plugins required RPH. Please read the questions rather than spewing out generic answers. This is the API development forum not a general support forum.
The native functions are natives, they bare no resemblance to either scripthook or RPH. These are functions found in the game. Scripthook and RPH are as the names suggest, hooks into the game memory in order for developers to make use of these native functions.
The hooks then also provide methods that wrap these functions so you can make use of them properly and allow the hook to handle it.
Scripthook requires you to use C++ natively, or you can use additional library to make .NET plugins or lua plugins etc. RPH is a .NET application only, so you code in c#.
-
Bhavin2707 got a reaction fromOfficer19in Scripthookvdotnet or ragehookThanx for reply. . . .okkk so what is the bAsic difference In coding between Rage n scripthook i mean do the rage uses the native hashes from script hook Or it impliments itS owNN. . . ThNx again for reply
-
Bhavin2707 reacted to LukeD in Scripthookvdotnet or ragehookYes, LSPDFR is built using RagePluginHook so it's plugins must be too.
-
Bhavin2707 reacted toOfficer19in Scripthookvdotnet or ragehookAgree with LukeD cause both are important, to get your trainer work, you will need scripthookV.
If you want to get your LSPDFR or any other mods working well, you will need to get RPH.