altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

Add serverside player functions and properties

Open KifKick opened this issue 6 years ago • 6 comments

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~~

KifKick avatar Mar 14 '19 16:03 KifKick

Not sure if we should provide access to the player ip.

FabianTerhorst avatar Mar 14 '19 18:03 FabianTerhorst

And i would like to have another function

  • [x] player.freeze()

FabianTerhorst avatar Mar 14 '19 18:03 FabianTerhorst

Not sure if we should provide access to the player ip.

This issue is about a server-side functions man.

KifKick avatar Mar 14 '19 21:03 KifKick

@KifKick that's the point, IP address of player in server-side. And @FabianTerhorst , we will provide IP of player, it's nothing harmful

gamelaster avatar Mar 15 '19 09:03 gamelaster

Added a new player functions to the list.

player.setDecoration player.clearDecorations player.getDecorationsState

#38

KifKick avatar Mar 26 '19 19:03 KifKick

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.

KifKick avatar Feb 19 '20 12:02 KifKick

I dont want to open a issue, but player.setWeaponTint seams to not be working rigth now, in only test on rc17.

S0P4 avatar Sep 16 '23 21:09 S0P4