Jump to content
ScottyTooHotty

Make a .dll

Recommended Posts

So I've done all the coding but now I need to make a .dll file so I can trial it in game. Any help is appreciated!

Edit: I know this is probably really simple once you know how but I have no Visual Studio experience. I've also googled but nothing comes up.

Edited by ScottehBoyy

Share this post


Link to post
Share on other sites
3 minutes ago, 585ny14603 said:

The program you wrote your code in should have an option to export it as a .dll

I wrote it in Visual Studio and I know the option is somewhere but I cannot find it.

Share this post


Link to post
Share on other sites
1 minute ago, ScottehBoyy said:

Thank you, where does it compile to?

Where you specified to store your files, when you created your project iirc. 

Share this post


Link to post
Share on other sites
5 minutes ago, ineseri said:

Where you specified to store your files, when you created your project iirc. 

I didn't get the option as I opened a project rather than created a new one.

I've located it now, I was making a mistake and that's why it wasn't showing up. Thanks all.

Share this post


Link to post
Share on other sites

look this link i was tall about how to converting to DLL

CTRL+SHIFT+B

Or

Click Right to Solution (your name Project)

 

 

Share this post


Link to post
Share on other sites
3 hours ago, ineseri said:

Where you specified to store your files, when you created your project iirc. 

 

2 hours ago, SSnarKW said:

look this link i was tall about how to converting to DLL


CTRL+SHIFT+B

Or

Click Right to Solution (your name Project)

 

 

Do you have any idea how to fix this error when I try to compile my code? https://gyazo.com/591856669f9d6526e326d6f7f67c5636

Share this post


Link to post
Share on other sites
51 minutes ago, apdapreturns said:

Do not attempt to start your project, instead, go to bin/x64/Debug (or Release) and copy your DLL to Plugins/LSPDFR

The error appears when you build the project, as vs is trying to start it like an executable

Share this post


Link to post
Share on other sites

I've got that fixed but now whenever the callout comes through in game LSPDFR crashes. Anyone have any suggestions? It's very simple code as I'm still learning. Let me know if you'd like too see the code :)

Share this post


Link to post
Share on other sites
4 hours ago, apdapreturns said:

What is the error? I'd check the logs.

 

10 minutes ago, apdapreturns said:

Not sure, but I think your mod is trying to load an invalid model? I mean, the hash?

Yeah! Got it! But now when the callout is accepted the ped disappears :( Back to Visual Studio

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×