GithubHelp home page GithubHelp logo

Gamemode is not loading about gta-rp HOT 3 CLOSED

BlutwurstPro avatar BlutwurstPro commented on July 23, 2024
Gamemode is not loading

from gta-rp.

Comments (3)

RoxiiCz avatar RoxiiCz commented on July 23, 2024 1

ENGLISH

I think you have tried to start this script with the new Open Beta. There are some Changes in that Version

Change the Line 88 in AdminCommands.cs:
client.giveWeapon(API.weaponNameToModel(weapon), 100, true, true);

to
API.givePlayerWeapon(client, API.weaponNameToModel(weapon), 100, true);

And change the Line 45 in Weapon.cs:
user.client.giveWeapon((WeaponHash)this.hash, 100, true, true);
to:
API.shared.givePlayerWeapon(user.client, (WeaponHash)this.hash, 100, true);

Not tested but i think it will work because the "ammoLoaded" Parameter was removed in the newest Version

~Greetz RoxiiC

GERMAN

Ich denke mal du nutzt die aktuellste Open Beta Version, Dort wurde ein paar Änderungen an der Api gemacht.

Ändere die Zeile 88 in AdminCommands.cs:
client.giveWeapon(API.weaponNameToModel(weapon), 100, true, true);

zu
API.givePlayerWeapon(client, API.weaponNameToModel(weapon), 100, true);

Und die Zeile 45 in Weapon.cs:
user.client.giveWeapon((WeaponHash)this.hash, 100, true, true);
zu:
API.shared.givePlayerWeapon(user.client, (WeaponHash)this.hash, 100, true);

Ich habs nicht getestet aber es sollte funktionieren da in der neusten API der Parameter "ammoLoaded" von givePlayerWeapon entfernt wurde.

~MfG RoxiiC

from gta-rp.

beN114 avatar beN114 commented on July 23, 2024

hast du was geändert?
have u change anyone in the .cs?

from gta-rp.

BlutwurstPro avatar BlutwurstPro commented on July 23, 2024

nein gar nichts
wollte ja alles erstmal nur testen ^^
meine settings: http://prntscr.com/j2pjbi

from gta-rp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.