Jump to content

Son1Q

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Son1Q

  1. I want use other dll in my client-side project (C#), but when i start server, i receiv errors in clientside_cs.txt
    CS0246: The type or namespace name 'Contracts' could not be found (are you missing a using directive or an assembly reference?)
           -> C:\RAGEMP\client_resources\127.0.0.1_22005\cs_packages\AccountScript.cs:0

    Can i use other dll in my client-side?

  2. I downloaded npm package 'ragemp-c', but when i try call functions from 'mp' object i received error 'ERROR ReferenceError: mp is not defined'.

    import { Component } from '@angular/core';
    
    declare var mp: any;
    @Component({
      selector: 'app-counter-component',
      templateUrl: './counter.component.html'
    })
    export class CounterComponent {
      public currentCount = 0;
    
      public incrementCounter() {
          this.currentCount++;
          console.log(mp);
          mp.trigger('test');
      }
    }

    What could be the problem?

×
×
  • Create New...