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.

SetVehicleDoorOpen voes

Featured Replies

I found the solution for this issue.
It is a Native function so the qualifyer is  NativeFunction.Natives.SetVehicleDoorOpen(

-----------------------------------------------------------

Does anyone have a short example with SetVehicleDoorOpen
I cant get VS to eat this:
                    if (Game.IsKeyDown(System.Windows.Forms.Keys.D))
                    {
                       SetVehicleDoorOpen(EmergencyVehicle, 2, true, false);
                    }

SetVehicleDoorOpen gets underlining and VS says 'its not valid in this context'(?)
The reference says:

Spoiler

SetVehicleDoorOpen

0x7C65DAC73C35C862

0xBB75D38B

// SET_VEHICLE_DOOR_OPEN void SetVehicleDoorOpen(int /* Vehicle */ vehicle, int doorIndex, bool loose, bool openInstantly);

Parameters:
vehicle:

Vehicle.

doorIndex:

Index of the door you want to open (0-7)

loose:

Whether the door is "loose" (if true the doors have no "spring" and can be closed easily.)

openInstantly:

Whether the doors open instantly (if true this native seems to ignore loose)

Sets the specified door index open on the passed vehicle. See IS_VEHICLE_DOOR_FULLY_OPEN.

EmergencyVehicle

Is defined and working in other context. its not that
Maybe i am missing a reference..
I have
 

Spoiler

using LSPD_First_Response;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Rage;
using Rage.Native;
using LSPD_First_Response.Mod.API;
using LSPD_First_Response.Mod.Callouts;
using LSPD_First_Response.Engine.Scripting.Entities;
using Rage.Attributes;

I cant figure out where i have a mistake.

Edited by GTAbear
added solution

See my plugin here:
https://www.youtube.com/watch?v=peqSXuTfIyY

Let me know if you find it interesting.
Best Regards.

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.