Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Diamond Casino Heist
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Red Dead Online

      1. Frontier Pursuits
      2. Find Lobbies & Outlaws
      3. Help & Support
    3. Crews

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

    2. GTA 6

      1. St Andrews Cathedral
    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    3. Gangs

    1. Announcements

    2. Support

    3. Suggestions

Alexander Blade

[V] Script/Native Documentation and Research

Recommended Posts

Luiisjoseda
PLAYER::SET_PLAYER_TEAM(Player PlayerID, UINT32 teamId)

Function is used with multiplayer tho.

 

Obviously ;)

Share this post


Link to post
Share on other sites
sasuke78200

You guys should look at this page before asking what are the params, http://dev-c.com/nativedb/ we really need to work together to progress btw, if you have some changes to make, don't hesitate it will benefit for all of us.

Edited by sasuke78200

Share this post


Link to post
Share on other sites
Bucho

I can not complete script hook in the stack control of yourself as long as you do not use function to still script added. And that use the function ... LoL

Share this post


Link to post
Share on other sites
ffzero58

Not sure if this has been mentioned before but you can open all of the Decompiled Scripts in notepad++ and search in all documents for a string - it definitely helps:

 

vMx4D.jpg

 

oASy2.jpg

  • Like 2

Share this post


Link to post
Share on other sites
Opius

Thought I'd come out of retirement to say thanks heaps for this database. :) With the LUA hook out now I've been playing around with it and the documentation has been invaluable. I've been updating arguments here and there as I discover them myself.

  • Like 1

Share this post


Link to post
Share on other sites
Lordmau5

Is there a way to check if the game is currently focused?

 

I noticed, that when I Alt-Tabbed out of the game (over to Notepad++), that when I hit one of my hotkeys for my mod, it ran the function that was set on them...

Share this post


Link to post
Share on other sites
sasuke78200

Yeah you can use this function GetFocus

Share this post


Link to post
Share on other sites
Lordmau5

I need to work that out later, thanks sasuke :)

 

Now... I copied over some of Alex's code to my script, for drawing some rectangles with text on them.

Or well, rather one.

27-04-2015_13-55-37.jpg

Looks good!

 

However, it's not working with Unicode characters on that font...

27-04-2015_14-01-38.jpg

 

Soo... How would I implement a custom font now?

I mean, I know it's possible, since it's .DLL injection as well,

but how would I draw with that custom loaded font afterwards?

 

There's no native-function for that, is there?

Share this post


Link to post
Share on other sites
sasuke78200

You have to hook DirectX, and write directly with it.

Share this post


Link to post
Share on other sites
Bucho

lol I Bypass spawn vehicle and other in online.I will post how to it

Share this post


Link to post
Share on other sites
ffzero58

Is there any work being done to trigger player or ped animations? Do we have a list of animations that can be played by (from my understanding) the native ENTITY::PLAY_ENTITY_ANIM?

 

nAGVz.jpg

Share this post


Link to post
Share on other sites
Silent

lol I Bypass spawn vehicle and other in online.I will post how to it

You better not do it again. I binned the topic and I don't want it to reappear.

Edited by Silent
  • Like 2

Share this post


Link to post
Share on other sites
Bucho

Oh sh*t. I'm sorry.

Share this post


Link to post
Share on other sites
splintter

 

lol I Bypass spawn vehicle and other in online.I will post how to it

You better not do it again. I binned the topic and I don't want it to reappear.

 

 

I hate when boring mods are faster than me to edit the good topics. :( (thats a joke...)

 

@Topic

Anyone know the native for editing clothes? I can't find it.

Edited by splintter

Share this post


Link to post
Share on other sites
Bucho

 

 

 

lol I Bypass spawn vehicle and other in online.I will post how to it

You better not do it again. I binned the topic and I don't want it to reappear.

 

I hate when boring mods are faster than me to edit the good topics. :( (thats a joke...)

 

@Topic

Anyone know the native for editing clothes? I can't find it.

Add skype.

Share this post


Link to post
Share on other sites
splintter

 

 

 

lol I Bypass spawn vehicle and other in online.I will post how to it

You better not do it again. I binned the topic and I don't want it to reappear.

 

I hate when boring mods are faster than me to edit the good topics. :( (thats a joke...)

 

@Topic

Anyone know the native for editing clothes? I can't find it.

Add skype.

 

 

I sent you a message there.

Share this post


Link to post
Share on other sites
Lesnikus
What does the symbol * (point) in some functions? For example:
SET_ENTITY_AS_NO_LONGER_NEEDED(Entity *entityHandle)

or

SET_VEHICLE_AS_NO_LONGER_NEEDED(Vehicle *vehicleHandle)
When I enter a my variable "veh" (Vehicle veh = PED::GET_VEHICLE_PED_IS_USING(playerPed)), i get error:

 

error C2664: 'void ENTITY::SET_VEHICLE_AS_NO_LONGER_NEEDED(Vehicle *)' : cannot convert argument 1 from 'Vehicle' to 'Vehicle *'

Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast

 

Help me! How to write it correctly?

Edited by Lesnikus

Share this post


Link to post
Share on other sites
Jitnaught

 

What does the symbol * (point) in some functions? For example:
SET_ENTITY_AS_NO_LONGER_NEEDED(Entity *entityHandle)

or

SET_VEHICLE_AS_NO_LONGER_NEEDED(Vehicle *vehicleHandle)
When I enter a my variable "veh" (Vehicle veh = PED::GET_VEHICLE_PED_IS_USING(playerPed)), i get error:

 

error C2664: 'void ENTITY::SET_VEHICLE_AS_NO_LONGER_NEEDED(Vehicle *)' : cannot convert argument 1 from 'Vehicle' to 'Vehicle *'

Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast

 

Help me! How to write it correctly?

 

The asterisk (*) means that that variable is a pointer.

Share this post


Link to post
Share on other sites
Lesnikus

 

 

What does the symbol * (point) in some functions? For example:
SET_ENTITY_AS_NO_LONGER_NEEDED(Entity *entityHandle)

or

SET_VEHICLE_AS_NO_LONGER_NEEDED(Vehicle *vehicleHandle)
When I enter a my variable "veh" (Vehicle veh = PED::GET_VEHICLE_PED_IS_USING(playerPed)), i get error:

 

error C2664: 'void ENTITY::SET_VEHICLE_AS_NO_LONGER_NEEDED(Vehicle *)' : cannot convert argument 1 from 'Vehicle' to 'Vehicle *'

Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast

 

Help me! How to write it correctly?

 

The asterisk (*) means that that variable is a pointer.

 

 

What does it mean? How to do the right thing? How do I apply it to my "Vehicle veh"?

Edited by Lesnikus

Share this post


Link to post
Share on other sites
splintter


ENTITY::SET_VEHICLE_AS_NO_LONGER_NEEDED(&veh);

  • Like 1

Share this post


Link to post
Share on other sites
Aleph-Zero

What does it mean? How to do the right thing? How do I apply it to my "Vehicle veh"?

 

It means you need to learn pointers.

  • Like 1

Share this post


Link to post
Share on other sites
Lesnikus
ENTITY::SET_VEHICLE_AS_NO_LONGER_NEEDED(&veh);

Thank you!

Share this post


Link to post
Share on other sites
headscript

You guys should look at this page before asking what are the params, http://dev-c.com/nativedb/ we really need to work together to progress btw, if you have some changes to make, don't hesitate it will benefit for all of us.

i go like every day on it and rename 10 arguments from capital to lower case because some people dont understand that u shouldnt nape a argument the same as a type

also i cant use it until alexander blade hasnt updated it to PC 64bit Hashes (I would help him he should just contact me for that ) as we already have the PC hashes in the sdk -.-

 

(Alexander when u gonna release PC nativedb? )

Share this post


Link to post
Share on other sites
Szabo

Hey guys, I know probably it's been asked before and it's a noob question, but what is the "Any" type? I didn't get it.

Share this post


Link to post
Share on other sites
moment0

Hey guys, I know probably it's been asked before and it's a noob question, but what is the "Any" type? I didn't get it.

 

If you look at the types header, you will see that Any is just a dword/unsigned long. It's a generic type either means "we aren't sure what this is", or "you could pass different parameters in here depending on the context". For example, you may be able to pass a Ped in, or a vehicle, or a hashkey, but for some functions it's not yet known which they need. That's my understanding, at least.

Share this post


Link to post
Share on other sites
Szabo

 

Hey guys, I know probably it's been asked before and it's a noob question, but what is the "Any" type? I didn't get it.

 

If you look at the types header, you will see that Any is just a dword/unsigned long. It's a generic type either means "we aren't sure what this is", or "you could pass different parameters in here depending on the context". For example, you may be able to pass a Ped in, or a vehicle, or a hashkey, but for some functions it's not yet known which they need. That's my understanding, at least.

 

Thank you! I really appreciate it.

Share this post


Link to post
Share on other sites
override367

edit: wrong thread

Edited by override367

Share this post


Link to post
Share on other sites
FabioGNR

 

You guys should look at this page before asking what are the params, http://dev-c.com/nativedb/ we really need to work together to progress btw, if you have some changes to make, don't hesitate it will benefit for all of us.

i go like every day on it and rename 10 arguments from capital to lower case because some people dont understand that u shouldnt nape a argument the same as a type

also i cant use it until alexander blade hasnt updated it to PC 64bit Hashes (I would help him he should just contact me for that ) as we already have the PC hashes in the sdk -.-

 

(Alexander when u gonna release PC nativedb? )

 

Yeah I second this, the updated DB would be great to start documenting. Hopefully changes in syntax that I've committed won't disappear though.

Share this post


Link to post
Share on other sites
Alexander Blade

I will move some declarations

 

 

 

You guys should look at this page before asking what are the params, http://dev-c.com/nativedb/ we really need to work together to progress btw, if you have some changes to make, don't hesitate it will benefit for all of us.

i go like every day on it and rename 10 arguments from capital to lower case because some people dont understand that u shouldnt nape a argument the same as a type

also i cant use it until alexander blade hasnt updated it to PC 64bit Hashes (I would help him he should just contact me for that ) as we already have the PC hashes in the sdk -.-

 

(Alexander when u gonna release PC nativedb? )

 

Yeah I second this, the updated DB would be great to start documenting. Hopefully changes in syntax that I've committed won't disappear though.

 

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.


  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.