altv-issues
altv-issues copied to clipboard
Add serverside player functions and properties
gamiee's note: Please mark every function as / [] nameOfFunction.
Functions:
- [x] ~~player.putInVehicle (vehicle, seat)~~
- [ ] player.ejectFromVehicle
- [x] ~~player.addWeapon (weaponHash, ammoCount)~~
- [x] ~~player.removeWeapon params: (weaponHash)~~
- [x] ~~player.removeAllWeapons~~
- [ ] player.setWeaponAmmo (weaponHash, ammoCount)
- [ ] player.getWeaponAmmo (weaponHash)
- [x] ~~player.giveWeaponComponent (weaponHash, componentHash)~~
- [x] ~~player.hasWeaponComponent (weaponHash, componentHash)~~
- [x] ~~player.getWeaponComponents(weaponHash)~~
- [x] ~~player.removeWeaponComponent(weaponHash, componentHash)~~
- [ ] player.removeAllWeaponComponents(weaponHash)
- [ ] player.resetAllWeaponComponents
- [x] ~~player.setWeaponTint(weaponHash, tintIndex)~~
- [x] ~~player.getWeaponTint(weaponHash)~~
- [x] ~~player.getAllWeaponTints()~~
- [ ] player.resetAllWeaponTints()
- [ ] ~~player.setDefaultComponentVariation~~
- [x] ~~player.setComponentVariation (componentId, drawableId, textureId, paletteId)~~
- [x] ~~player.getComponentVariation (componentId)~~
- [x] ~~player.setHeadOverlay (overlayId, index, opacity)~~
- [x] ~~player.setHeadOverlayColor (overlayId, colorType, colorId, secondColorId)~~
- [x] ~~player.setEyeColor (index)~~
- [x] ~~player.setFaceFeature (index, scale) -> or/and one function for all face features~~
- [x] ~~player.setHeadBlendData (shapeFirstID, shapeSecondID, shapeThirdID, skinFirstID, skinSecondID, skinThirdID, shapeMix, skinMix, thirdMix, isParent)~~
- [ ] player.playAnimation
- [ ] player.stopAnimation
- [ ] player.setDecoration
- [ ] player.clearDecorations
- [ ] player.getDecorationsState
Properties:
- [x] ~~player.ip~~
- [x] ~~player.discordId~~
- [ ] player.licenseHash
- [x] ~~player.allWeapons~~
- [x] ~~player.currentWeapon~~
- [x] ~~player.eyeColor~~
- [x] ~~player.faceFeatures~~
- [x] ~~player.hairColor~~
- [x] ~~player.hairSecondColor~~
- [x] ~~player.headBlendData~~
Not sure if we should provide access to the player ip.
And i would like to have another function
- [x] player.freeze()
Not sure if we should provide access to the player ip.
This issue is about a server-side functions man.
@KifKick that's the point, IP address of player in server-side. And @FabianTerhorst , we will provide IP of player, it's nothing harmful
Added a new player functions to the list.
player.setDecoration player.clearDecorations player.getDecorationsState
#38
Checked options which are added and removed options that is synced by client-side and now in my opinion is not needed to be server-side.
I dont want to open a issue, but player.setWeaponTint seams to not be working rigth now, in only test on rc17.