Loorenzos

[Native] Invisible ??

Recommended Posts

Hey, i come from FiveM and i trying to convert my admin menu to RageMP and i have a problem with my invisibility native

SetEntityVisible(ped, false, false)

I didnt saw it in the Wiki ^^ someone know if there is the same on RageMP ?? :P

Edited by Loorenzos

Share this post


Link to post
Share on other sites

and same for these native

 

var heading = GetGameplayCamRelativeHeading()+GetEntityHeading(GetPlayerPed(-1))
var pitch = GetGameplayCamRelativePitch()

 

Share this post


Link to post
Share on other sites

Ok i tried this one :

mp.game.invoke('0xB5024B946329EB6A', entity, false, false); // SetEntityVisible 

and it didnt work, it said me that the native is incorrect (i tried both 1.36 and 1.39)

Share this post


Link to post
Share on other sites

For Entity visibility use the following:
 

entity.setAlpha(alpha) //alpha could be from (0-255) 0 means invisible

setAlpha

For your camera functions, I believe you're trying to find this:

 

mp.game.cam.setGameplayCamRelativePitch(x, Value2);
mp.game.cam.setGameplayCamRelativeHeading(heading);

setGameplayCamRelativeHeading
setGameplayCamRelativePitch

Share this post


Link to post
Share on other sites
10 hours ago, Captien said:

For Entity visibility use the following:
 

entity.setAlpha(alpha) //alpha could be from (0-255) 0 means invisible

setAlpha

For your camera functions, I believe you're trying to find this:

 

mp.game.cam.setGameplayCamRelativePitch(x, Value2);
mp.game.cam.setGameplayCamRelativeHeading(heading);

setGameplayCamRelativeHeading
setGameplayCamRelativePitch

not this one.. i want GETGameplayCamRelativePitch/Heading

Share this post


Link to post
Share on other sites

Better to join discord so you can get quicker help i guess. Discord is far more active than board

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.


  • Recently Browsing   0 members

    No registered users viewing this page.