Jump to content

Scripting Question


The Big House

Recommended Posts

I'm new to scripting - I'm trying to write a script that will ask my cop if I want more ammo so that I wouldn't have to get ammo from the car.

 

I'm using C#. I can't seem to find a way to check whether LCPDFR is started. Well I can see where the start variable is located, but I can't use the if statement programmatic to see if lcpdfr is start. how would i be able to do this?

 

I'm probably sure that the script I'm trying to write is out there, I just want to write this script myself to introduce me to scripting for GTA. :) Oh, and yes, I do know C#. :)

Edited by dumbrabbit
Link to comment
Share on other sites

There isn't an LCPDFR API yet, so you can't really integrate with it. However, an API is in development for a future version of LCPDFR.

You could try to monitor Alt+P, but in general, you can't yet check on-duty status.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...