Skip to content

parpMoretti/AltVNetCameraHandler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AltVNetCameraHandler

This is a basic resource for AltV.Net serverside and Java clientside. Handles the players current camera. This is still a WIP.

Setup

The CameraExtension.cs file is the serverside one. Place the camera.js inside your current resources and remember to make sure it's included in the resource.cfg

Usage

Currently we only have interpolate (moving cameras), single camera creation and destroying cameras. More will come over time or if anyone requests it.

Creating a Camera

CameraExtension.CreateCamera(player, positionOfCamera, RotationOfCamera, fov);

CameraExtension.CreateCamera(player, new Position(0,0,0), new Rotation(0,0,0), 50);

Destroying a Camera

CameraExtension.DeleteCamera(player);

Interpolation

CameraExtension.InterpolateCamera(player, positionOne, rotationOne, fovOne, positionTwo, rotationTwo, fovTwo, duration

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors