Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Stop a car from working?

Featured Replies

I was doing this:

        private void Game_FrameRender(object sender, GraphicsEventArgs e)
        {
            if (Game.IsKeyDown(System.Windows.Forms.Keys.NumPad1))
            {
				...
				v.IsDriveable = !v.IsDriveable;
			...

But the ped can switch it back. Is there a proper way to let him not start it again?

EDIT1: Think about how the pursuits stop cars. I want to be able to do that while on foot so cars don't go flying past my sobriety checkpoint.

Edited by apdapreturns

  • 4 weeks later...
On 2/26/2016 at 5:58 PM, apdapreturns said:

I was doing this:


        private void Game_FrameRender(object sender, GraphicsEventArgs e)
        {
            if (Game.IsKeyDown(System.Windows.Forms.Keys.NumPad1))
            {
				...
				v.IsDriveable = !v.IsDriveable;
			...

But the ped can switch it back. Is there a proper way to let him not start it again?

EDIT1: Think about how the pursuits stop cars. I want to be able to do that while on foot so cars don't go flying past my sobriety checkpoint.

ah that isn't the correct way of doing it you really shouldn't do it in the game_framerender event

you need to likely do it in the main() function or some other function but to do what you want where there stopped and don't move it would be best to use a for or while loop to make the script constantly execute and turn their car off so they cannot go anywhere plus use this function instead:

v.IsEngineOn = false;

as the above code will basically stop the engine and make them stay put I used to use it in one of my other mods to make the car stay put(was obviously before lspdfr as I was trying to make a pullover function but that failed and lspdfr's function is alot better then mine)

My plugins by me are on this site in addition to my own site as well.

Do Not PM Me for Support! follow the instructions for getting support with any mods. 

I've been using something like v.IsDrivable=false in my WIP ambient events plugin, though I'm also killing the engine health at the same time so I'm not sure if its that that's stopping them.

My YouTube Channel: Darkmyre Gaming (Australian LSPDFR patrols, plugins in development, and other games)

My Discord Server | AusGamer Network

 

Please do not PM me for technical support or bug reports, use the appropriate forum or plugin's comments instead.

I tend to use v.IsDrivable=false, however I loop this continously because otherwise I experience problems with it.

Using the actual native may prove to be more useful.

My YouTube: Click here. 

My Discord Server - https://discord.gg/0taiZvBSiw5qGAXU

Useful post? Let me and others know by clicking the Like button.
Check out my many script modifications! 
Having issues? LSPDFR Troubleshooter by Albo1125.

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...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.