Comments (3)
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.
hast du was geändert?
have u change anyone in the .cs?
from gta-rp.
nein gar nichts
wollte ja alles erstmal nur testen ^^
meine settings: http://prntscr.com/j2pjbi
from gta-rp.
Related Issues (20)
- Errorq HOT 1
- No Login screen?
- Cant Login HOT 3
- Database Errors HOT 3
- Cant Login HOT 3
- /duty didn´t work HOT 1
- Login Form HOT 2
- [Script / Characters] Some other issues
- I need Help! | Ich brauche Hilfe! HOT 1
- Gamemod Problems / Gamemod Probleme
- Error MySql DateBase HOT 2
- [HELP] Coordinates of Checkpoints
- Problem with second login HOT 2
- Login bug... :( please help
- Error when starting GT:MP Server HOT 8
- I did all the step, but I have a big issue
- Error in Type or namespace HOT 1
- Server starts but no login page or content is displayed in the game HOT 1
- Issue in deploy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gta-rp.