Everything posted by LMS
-
Callout Process Not Working
What exactly is not working as expected?
-
Reduce vehicle spawning around player via API
If you do not want to make this a callout plugin, you should look into creating RAGE Plugin Hook plugins. It comes with a plethora of examples and documentation to help get you started. It is also the same framework LSPDFR uses. For those two natives, the first - as evident by the name - needs to be called per frame (that is, each tick) - in order to have an effect. Common ranges are 0.0 - 1.0 (default). The second native I think takes four different levels (might be more) where 0 indicates no traffic at all and I think 3 is the default setting. This is a permanent change and only needs to be called once.
-
Reduce vehicle spawning around player via API
This is not exposed via the API, but you can look into the density natives or model budget (very effective but less granular).
-
Startup fix
There is nothing else you need - it is statically linked. If you genuinely believe there is an issue with LML that is not caused by your current setup or another mod, please post the Event Viewer details of the V crash and your relevant LML logs. There should be at least one entry that lists vfs.dll as the faulting module if the crash occurred in LML.
-
Why script hooks and mod frameworks for GTA still uses .NET Framework?
There is no support for AppDomains in .NET as compared to framework, so isolating plugins is a very different beast. I suppose the way forward would be using IPC as isolation, but I don't think anyone has looked into that yet for a GTA framework.
-
help please!
You are using a very outdated build.
-
Chernobog's outrigger legs
I had a quick look and there might not actually be a native for this. However, the legs are controlled via a flag that can be set easily via memory. You can use this (it scans for the flag offset dynamically to make it more resilient against game updates). You also might want to turn this into an extension method and cache the offset somewhere (though RPH does cache the pattern result after the first scan). private static unsafe void SetOutriggerLegsEnabled(Vehicle vehicle, bool state) { // You could cache the offset somewhere. var patternOffset = Game.FindPattern("74 30 80 BF ?? 03 00 00 00"); var offset = *(int*)(patternOffset + 4); var legsDownFlagAddress = vehicle.MemoryAddress + offset; byte* legsFlags = (byte*)legsDownFlagAddress; *legsFlags = state ? (byte)1 : (byte)0; } Edit: If you manually change the float (a few bytes before the flag value), you can actually set the ground distance and achieve some funny looking results:
-
API function request in a future update
Your request was included in today's update.
-
LSPDFR 0.4.9 API Update
The small update today added a few more functions, namely: AcceptPendingCallout GetCalloutAcceptanceState GetPursuitCops HasPedSurrendered SetPedDisableCrimeEvents SetPlayerInteractionAction LSPD First Response.XML
-
crashes on startup
Is this on the latest LML update from December 19?
-
LSPDFR Crashing at/near Apartments
Most likely bundled within LSPDFR. I expect to push the fix later today.
-
[API Bug] Unable to Call In via B after SetPursuitAsCalledIn(false)
I sent you a test build.
-
[API Bug] Unable to Call In via B after SetPursuitAsCalledIn(false)
Would a function to ignore crime events for ped x work?
-
crashes on startup
Please go to event viewer and locate the GTA 5 crash entry (Windows Logs -> Application), then post its details here.
-
API function request in a future update
Thanks for the suggestion, I will take a look.
-
Problem with Callout making
That usually happens when one of the callout's prerequisites are not met, for instance the minimum or maximum distance. In your case, are you close enough to the position when the callout is dispatched (you set it to 30 meters)?
-
Zendesk Live Chat appearing
That certainly seems out of place and nothing you should be seeing on the site. We will take a look, thanks.
-
GTAV quits when I open it
I released an update for LML earlier that fixed a bad pattern affecting the latest GTA V update.
-
Crashing on removing suspects from patrol car.
Thanks guys, I pushed the update just now.
-
Crashing on removing suspects from patrol car.
@Charlie686 @OFCDimma Thanks for the feedback, looks like a bad offset in RPH. Please test the attached build and let me know if it works. RAGEPluginHook_1_89_1297_16275_Release.zip
-
Can't go on duty
The issue is with GrammarPolice / RAGENativeUI. Try removing the plugin.
-
LML not loading cars into game
To add to that, "Model Invalid" usually means the vehicles.meta entry is missing or bad.
-
How many cars are you allowed to load into the game?
What are you asking? That is a) supported via DLC loading but b) arguably a worse way to organize your mods.
-
replacing vehicles.meta in x64w.rpf/dlcpacks/mpbusiness
I have not tried that, but I can see if I can test it during winter holidays! Feel free to tag/nudge me again then.
-
replacing vehicles.meta in x64w.rpf/dlcpacks/mpbusiness
I am not sure, single entry replacement loads the file first to make sure others cannot overwrite it but perhaps this is exactly what DLC entries do - why I am not sure, though.