Jump to content
alt:V Multiplayer Forum

Recommended Posts

Posted (edited)

Hi,

is there a reason why you use

alt.setInterval(..., 0);

instead of

alt.on('update', ...);

?

Edited by Patrick
typo

Share this post


Link to post
Share on other sites

Update:

+added raycasting against map, vehicles, objects and peds

+updated to latest altv api

  • Like 1

Share this post


Link to post
Share on other sites

Download the resource copy it to ur project and load the resource through ur server.cfg

  • Like 2

Share this post


Link to post
Share on other sites
Posted (edited)

Sadly not working for me... Am I doing this right?

server.cfg

name: 'alt:V Server'
host: 0.0.0.0
port: 7788
players: 128
#password: ultra-password
announce: false
#token: YOUR_TOKEN
gamemode: Freeroam
website: example.com
language: en
description: 'alt:V Sample Server'
modules: [ node-module ]
resources: [
  myresource
  pointing
]

uvEmsy3.png 

-------------------

At first it wasn't working at all, but now it gives this error:
 

[01:21:09][Error] [V8] Exception at fingerpointing.js:10
[01:21:09][Error]          this.gameplayCam = game.createCameraWithParams("gameplay");
[01:21:09][Error] 
[01:21:09][Error]   TypeError: game.createCameraWithParams is not a function
    at new Fingerpointing (fingerpointing.js:10:33)
    at pointing:clientpoint.js:4:16
[01:21:09][Error] Failed to load resource:  pointing

 

Edited by Smilez

Share this post


Link to post
Share on other sites
Posted (edited)

Can´t confirm it, it still works perfectly so u are doing something wrong in ur setup. But it looks like ur natives aren´t loaded correctly. Everything is working fine for me on Server Beta and Client Beta branch.

Edited by t4styy

Share this post


Link to post
Share on other sites
On 5/23/2019 at 4:41 PM, Patrick said:

Hi,

is there a reason why you use

alt.setInterval(..., 0);

instead of

alt.on('update', ...);

?

The interval solution is more efficient and cpu friendly.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...