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.

c# script error

Featured Replies

Hi

I got an error with this line, how can i fix it or what should i use to do something, when we press alt+b for example.


if (Keys.b == b.Alt)

{

....

}

Error 1 The name 'Keys' does not exist in the current context

Error 2 The name 'b' does not exist in the current context

Thanks.

My youtube channel: https://www.youtube.com/user/gangrenn

Seagrave & pierce engine / ladder for GTA5: https://www.facebook.com/3DEmergencyVehicleModdingStudio/

 

public MyScript() {

this.KeyDown += new GTA.KeyEventHandler(KeyHandler);

}

private void KeyHandler(object sender, GTA.KeyEventArgs e) {

if (e.KeyWithModifiers == (Keys.Alt | Keys.B)) {

You are using the WRONG right theme!

[ WIPs | Donate | 🌌 Join Mod Multiverse!]
Flashing LED lightbar in British configuration

  • 2 weeks later...
  • Author

Alright, i fixed the error. But my script don't work:

i press alt+b but nothing happen (but i don't get any error in game, the scripthook log says that the script started successfully)

is it the good code to play a sound ?

My youtube channel: https://www.youtube.com/user/gangrenn

Seagrave & pierce engine / ladder for GTA5: https://www.facebook.com/3DEmergencyVehicleModdingStudio/

 

This is a support topic.
Only reply here to offer help or assistance to gangrenn. Off-topic or "me too" replies will be removed.

Need support yourself? Make a new topic instead.

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.