Reputation Activity
-
RonnyDee got a reaction from NeulandInternet in Lspdfr stürzt wegen Ultimate Backup abDein Spiel stürzt beim LadeScreen ab.
Ich würde dir empfehlen mal die Plugins beim RPH nicht automatisch zu laden, siehe https://gta-lspdfr-mods.de/infos/was-sind-die-besten-ragepluginhook-einstellungen/
Und dann via RPH Console im Spiel dein LSPDFR nachladen, siehe https://gta-lspdfr-mods.de/infos/wie-starte-ich-lspdfr/
Wenn dann immer noch alles abstürzt, solltest du mal alle Mods deaktivieren und prüfen ob dein GTA5 ohne Mods überhaupt noch läuft.
-
This thread will remain pinned and locked and used by moderation and management staff to maintain the API forum section. Please try to avoid pinning too many threads. Instead edit this hub thread with any information you deem relevant. If information is critical (i.e some things Cyan posts) it can be pinned, and added to the hub. Then unpinned later when it is no longer critical. The hub thread will then maintain the link to that thread.
Welcome to the API Development Forums
"Hello fellow developers. Welcome to our brand new LSPDFR API Development forum. Great to see you made it here! This is the place to ask questions about working with the API, as well as requesting features. More examples and proper documentation will follow soon as we focus on the mod itself currently. If you have any feedback regarding the very early API implementation though, feel free to share." - LMS
API Changes & Important Information
Download Centre API - Cyan
- Documentation post for the newly introduced download centre API for update and version comparison and beta authorization.
New API Functions in LSPDFR 0.2a - Sam
- Information regarding new API functionality provided by 0.2a
Keeping Users Safe - Cyan
- Update information regarding the upload of plugins which contact personal servers or use .EXE programs
Resources
GitHub Repository (This link directs you to GitHub.com)
- Link to the github repository. Here you can find developer resources such as custom classes to help you with development
Vector3Extension Class (This link directs you to pastebin.com)
- Link to the C# code that was removed from public access in LSPDFR code, simply add this class to your own plugin to make use of functions like Around(start, radius) and DistanceTo(start, end)
API Quick Start Guide & Example Project
- A quick start pdf guide and zip file containing a basic LSPDFR plugin solution, for use in Visual Studio
RagePluginHook Documentation (This link directs you straight to the RPH online documentation)
- Online documentation for the Rage Plugin Hook
GTA V Prop List (This link directs you to a prop list, hosted on GitHub.com)
- A list of all known GTA V prop model names
GTA V Natives Database (This link directs you to the GTA V Natives DB, hosted on dev-c.com)
- GTA V Natives database created by Alexander Blade.
GTA Animations List (This link directs you to the ls-multiplayer website)
- A larger list of all known animations in GTA V (It contains more than the RPH Documentation)
CoordSaverV - LtFlash
- Downloadable tool that helps the process of manually collecting callout spawn points
Guides & Other Useful Topics
Standardisation of API Plugin Colours - AlconH
- Thread detailing a universal colour scheme for text and blips for API developers to use when writing plugins
Guide to using the LSPDFR API & Documentation - Albo1125
- A nice guide to making use of the LSPDFR API
Guide to Creating a Callouts Plugin - ToastinYou
- A nice guide with images on how to create a callouts plugin with the LSPDFR API and RagePluginHook
LSPDFR Developers Discord Server - Stealth22 (This link directs to the Discord website, directly to the chat room)
- A free chat client for LSPDFR developers to make use of for general chat, help and guidance.
This discord server uses a bot which requires the user to verify themselves as a developer in order to prevent general "my game is broke help" requests.
Tips For Developers - Stealth22
- A general thread of useful tips for all developers, whether you're new to programming or not.
General Guidelines For Using This Forum
Please adhere to these where possible, as they will help to keep the forum clean and useable. Remember that your posts act as information sources to users as well, not just means to get help.
• Make use of title tags: [Solved] [Resource] [Guide] [Request] etc (I would recommend putting these at the start of your title)
• Make sure your titles are crystal clear, not single words. Remember users may search for similar issues, you wouldn't search Google for "help" and hope one of the 4,890,000,000 results is the one you need.
• Always put your log files either as an attachment or copied into a spoiler, similarly code snippets should be placed inside the code tags
Suggesting Content For This Hub Thread
If you have any suggestions for threads, resources or useful links that you think deserve to be highlighted in this thread please PM myself (LukeD) with your suggestion. Make sure you title your PM "API Dev Forum Idea" or similar so I can keep track of them. Alternatively you can direct message or tag me on the discord server mentioned above, please note I only respond to this on desktop however, so replies may be slow.
If you want to send me resources, be considerate of user safety and concerns regarding links.
• Don't post advertising or shortened URL's, I want a full link to the resource that I can read.
• Do give me a brief description of what you're sending, not just "hey this is useful".
• Do provide reasons for why you think it's needed in the hub thread. The more you justify it the better.
In cases where you link a post or thread to me, I will parse that post for direct links. If I can avoid bouncing users around the forum I will. For example the discord server link above was taken out of Stealth22's post. Posts may then be subject to removal if necessary.
I will credit all links where applicable, all I'm doing is concatenating the information into one thread, credits are deserved for those providing the resources or guides.
This hub thread is an attempt at cutting down the increasing number of pinned threads. Please don't ask for threads to be pinned in this forum section. Only critical, need to know information will be pinned. After a while it will then be moved to this hub when it is no longer critical, but still useful.
This forum section is subject to moderation as per usual. Any thread that is linked in this hub however, will be exempt from the necro posting rules. As they will be acting as pinned threads (which are already exempt).
<iframe src="https://discordapp.com/widget?id=191266053861539840&theme=dark" width="350" height="500" allowtransparency="true" frameborder="0"></iframe>
-
Hey there! Looking to create a callouts plugin of your own? Well, I'm here to help you.
So, let's get started. The requirements are as follows:
1) Have some general knowledge of C#, to learn the basics of C# I recommend reading Sections 1-17 here: http://rbwhitaker.wikidot.com/c-sharp-tutorials
2) Have Visual Studio Community Free, or any other version other than a trial, found here: https://www.visualstudio.com/en-us/visual-studio-homepage-vs.aspx
3) Have the files "RagePluginHookSDK.dll" and "LSPD First Response.dll", found in the downloads of RPH and LSPDFR.
Alright, once you have met those requirements, we can move onto the steps of starting your first callouts plugin!
1) Create a folder called "References" anywhere easily accessible to you.
- In this folder, place your files "RagePluginHookSDK.dll" and "LSPD First Response.dll".
2) Open Visual Studio.
- Once VS has fully loaded, at the top right click "File", "New", "Project".
- At the left click the arrows next to "Installed", "Templates", and click on "Visual C#".
- Then, in the middle box click "Class Library".
- Under "Name" at the bottom, in the box type whatever you want your project/callouts plugin to be called.
- Under "Location" choose where you want to save the project, this is recommended to be an easily accessible area.
- Click "OK".
3) When all loads in, you should get a screen of code like this:
4) First, click "Project" at the top of the screen, then "Add Reference..".
- A window will pop with a bunch of gibber jabber on it. Click the arrow next to "Browse".
- At the bottom left, click "Browse.."
- Once in Windows Explorer, navigate to your folder "References".
- Hold the left control key and select both the files in the folder References (Rage SDK and LSPD DLL).
- Make sure both boxes for the two files are ticked. Then, click "OK".
5) At the top of your code where everything says "using blahblah;". Replace all of those with the following lines below:
These basically state what references you're using, simple as that.
6) Over to the right, rename Class1.cs to Main.cs.
7) Then, you need to replace the code below the using statements with the following (explanations in the code, after "//"):
So this basically concludes our Main.cs file, all we have to do later on, as stated near the end of Main.cs above our method RegisterCallouts(), is register the callouts that we make, which we are about to do.
8) Next, we need to double click on "Properties" to the right. Under the dropdown box "Target framework:" select .NET Framework 4.6.
- Then click Control+S and exit the Properties tab.
9) Over to the right, right click on ExamplePlugin and click "Add" then "New Folder", naming it "Callouts".
- Then, right click on the "Callouts" folder, click "Add" then "Class..".
- Name it whatever your callout name is, for this example we're going to be creating a simple "Pursuit in Progress" callout, so name it "PursuitinProgress.cs".
10) In it, use this code below:
Everything is explained in the code to help you out. I recommend you experiment with it to change things to your liking.
11) Now, go to Main.cs and under the RegisterCallouts() method you need to add the following:
12) Lastly, double click "Properties" to the right. Then, click "Build" to the left. Under "Platform Target:" select x64.
- Thank you @Stealth22 for informing me of this!
Save and you're good to go! You got your first callout. You can ultimately expand upon this information I have provided with you to make your own unique callouts plugin!
- To actually use the plugin, you have to click "Build" at the top of VS, click "Build Solution", make sure there are no errors, then go to wherever your project "ExamplePlugin" is located, go into bin > Debug. There you will find your references that were used and your "ExamplePlugin.dll". Drag and drop this file into GTA V > Plugins > LSPDFR and boot up GTA V! Also, if you want to quickly debug and make solving crashes easier, install "ExamplePlugin.pdb" to the same spot you installed ExamplePlugin.dll.
If you have any questions, please ask me!
If I forgot something or messed up something (as expected), please let me know.
-
RonnyDee reacted to LukeD in API Quick Start Guide & Example ProjectHere you can find the API Quick Start Guide & Example Project.
Download and extract this to a location of your choosing, be careful to read the guide fully and read the comments in the example project.
The project itself requires Visual Studio and is written in C# which is what we recommend.
Over time the API will change and I'll try to update this with each change.
NOTICE: If you have any questions regarding API usage or you need help with particular problems, please create a thread in the API Development section.
Please title your new threads with an accurate but very summarised description of your problem. A set of FAQ's will be added to this post to help clear up common problems.
This new thread will be locked and updated with a changelog each time API functions get amended or added.
Changelog
23/Jul/15
• Added API function to play scanner audio using position to the example callout, updated references to default to RPH 0.20 and LSPDFR 0.2a.
APIExample.zip
LSPDFR API Start Guide.pdf
-
Hey I registered to leave this comment,
When i created the project I named it something else. Its worth noting in the documentation that, if the user names the project something else, they must change the references.
Main.cs, Line 11
PursuitinProgress.cs, Line 9
Additionally, I had to change Main Ln 11 to read as below for it to build correctly.
#using Projectname.Callouts;
I am not a native of C#, all my experience is with C++, so I may have fubar'd something along the way. Let me know if I did something wrong here.
Also, police IRL, so I am planning on making some realistic callouts! Thanks for the post!!
-
For the MSIL warning, set your project's processor architecture from Any CPU to x64.