Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

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

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

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

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

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    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. Design Your Own Mission
      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
    1. Announcements

    2. Support

    3. Suggestions

Native Functions


pedro2555
 Share

Recommended Posts

I have posted about this topic here and there, but I'm kinda frustrated about it. All of you know the super usefull List of Native Functions at GTAModding.com, that list is maintained by those who use it. Or is it ?

 

I've seen countless times native functions from GTA beeing used in mods, and, sadly, when I go search for them at GTAModding.com, the page does not exists.

 

We all know it is pratically impossible to figure out parameters and return values just by trying. So it is quite crucial to share what we know. As most of what we know was shared with us, to some extent.

 

I can understand that sometimes (or most times) it takes too long, to create a page there, or with the new findings you want more to test them than write about them. And it actually is very quick to create a new page at GTAModding.com. (For those who don't know, the login is the same as here)

 

So all I ask is, update the dang list if you can! I personally did it in bulk, and that turns out nice, so you can see how large is the number of undocumented functions I've seen so far (and most likely more).

 

99% of this functions are completly untested by me, but again I've seen them in use and took note of input and ouput parameters.

Would be cool if you guys test them to, so we can also know what they actually do. All these functions did not have a page created untill I did.

 

The Page at GTAModding.com -> http://www.gtamodding.com/index.php?title=...ative_functions

 

The list of functions, 65 of them, it took me almost 2 days!

 

SET_PED_WONT_ATTACK_PLAYER_WITHOUT_WANTED_LEVEL

SET_CHAR_PROVIDE_COVERING_FIRE

SET_CHAR_ALLOWED_TO_DUCK

TASK_CAR_DRIVE_TO_COORD

SET_CHAR_BLEEDING

DAMAGE_CHAR

GET_TEXT_INPUT_ACTIVE

IS_BIG_VEHICLE

SET_PED_WEAPON

TASK_DRIVE_BY

IS_CAR_STOPPED

SAY_AMBIENT_SPEECH_WITH_VOICE

IS_CAR_STREET_RACER

SET_DECISION_MAKER_ATTRIBUTE_TEAMWORK

SET_DECISION_MAKER_ATTRIBUTE_WEAPON_ACCURACY

SET_DECISION_MAKER_ATTRIBUTE_TARGET_INJURED_REACTION

IS_BUTTON_JUST_PRESSED

CREATE_HTML_VIEWPORT

SET_VIEWPORT_PRIORITY

OVERRIDE_FREEZE_FLAGS

LOAD_WEB_PAGE

CREATE_EMERGENCY_SERVICES_CAR_THEN_WALK

CREATE_EMERGENCY_SERVICES_CAR_RETURN_DRIVER

END_CAM_COMMANDS

DESTROY_ALL_CAMS

SET_GLOBAL_RENDER_FLAGS

SET_CAM_PROPAGATE

CLEAR_TIMECYCLE_MODIFIER

SET_CHAR_WILL_ONLY_FIRE_WITH_CLEAR_LOS

SET_CHAR_SIGNAL_AFTER_KILL

CLEAR_CHAR_PROP

CLEAR_ALL_CHAR_PROPS

CLEAR_NAMED_CUTSCENE

CLEAR_HELP

CLEAR_NEWS_SCROLLBAR

ENABLE_POLICE_SCANNER

FLASH_BLIP

GET_SOUND_ID

HAS_CHAR_BEEN_ARRESTED

HAS_SOUND_FINISHED

INIT_CUTSCENE

IS_AMBIENT_SPEECH_PLAYING

IS_HELP_MESSAGE_BEING_DISPLAYED

MISSION_AUDIO_BANK_NO_LONGER_NEEDED

SET_CAM_BEHIND_PED

PLAY_SOUND_FRONTEND

RELEASE_SOUND_ID

REQUEST_MISSION_AUDIO_BANK

SET_ANIM_GROUP_FOR_CHAR

SET_CHAR_COORDINATES_DONT_WARP_GANG

SET_CHAR_DUCKING

SET_CHAR_PROP_INDEX

SET_CHAR_READY_TO_BE_EXECUTED

SET_CHAR_WILL_LEAVE_CAR_IN_COMBAT

SET_DONT_ACTIVATE_RAGDOLL_FROM_PLAYER_IMPACT

SET_DRIVE_TASK_CRUISE_SPEED

SET_POLICE_FOCUS_WILL_TRACK_CAR

TRIGGER_VIGILANTE_CRIME

TASK_PLAY_ANIM_READY_TO_BE_EXECUTED

TASK_GOTO_CHAR_AIMING

TASK_CHAR_ARREST_CHAR

IS_BUTTON_PRESSED

IS_USING_CONTROLLER

TASK_TURN_CHAR_TO_FACE_CHAR

SET_VEH_ALARM

 

Hope no one gets mad at me, that is totally not the intention. Although I do apologize if that is the case.

Link to comment
Share on other sites

Michael Wojtanis

Here You have most native with instructions:

http://pastebin.com/n7CAnpZB

 

I have copy of that on my HDD.

Usefull. Also, You can check in this Coding section "scorpio" upacked mission SCO. There are natives with values.

To fin in these .txt files use windows CMD. "Findstr /C:"SEARCH_TEXT" *.ini" - but go first with "cd" command here. That is all.

Link to comment
Share on other sites

Here You have most native with instructions:

http://pastebin.com/n7CAnpZB

 

I have copy of that on my HDD.

Usefull. Also, You can check in this Coding section "scorpio" upacked mission SCO. There are natives with values.

To fin in these .txt files use windows CMD. "Findstr /C:"SEARCH_TEXT" *.ini" - but go first with "cd" command here. That is all.

I didn't know that one. Very cool, still we missed a lot of documentation on what they do.

 

Very helpfull nevertheless.

Link to comment
Share on other sites

if you look around in scripthook defenitions of c++ scripthook, .net scripthook, SCO decompiler, and some more, you'll find a lot of defined natives. (especially in alexanders stuff)

Link to comment
Share on other sites

 

if you look around in scripthook defenitions of c++ scripthook, .net scripthook, SCO decompiler, and some more, you'll find a lot of defined natives. (especially in alexanders stuff)

Yes he's right!

I'm using SCOCL and FileLocator Lite!

With FileLocator you can search for natives very simply! Right-click on SCOCL folder choose FileLocator and type in Containing text e.g. "set_car_on".

Then click in left window on "natives.h" and see the results on the right-hand side... biggrin.gif

 

@pedro2555

Thanx for your great OvertakingFix 1.0.2 mod! cookie.gif

Link to comment
Share on other sites

 

if you look around in scripthook defenitions of c++ scripthook, .net scripthook, SCO decompiler, and some more, you'll find a lot of defined natives. (especially in alexanders stuff)

Yes he's right!

I'm using SCOCL and FileLocator Lite!

With FileLocator you can search for natives very simply! Right-click on SCOCL folder choose FileLocator and type in Containing text e.g. "set_car_on".

Then click in left window on "natives.h" and see the results on the right-hand side... biggrin.gif

 

@pedro2555

Thanx for your great OvertakingFix 1.0.2 mod! cookie.gif

Thks mate, I know I can find nayives functions all over the place. Those 60 are just the ones I took note on paper (note that). But the thing is, there is a place to document them just keep updating it once in a while. Which means also sharing what they do.

 

Even knowing that theres a lot of natives spreaded I always go to gta modding, everything else takes away time like crazy.

Link to comment
Share on other sites

Has anyone ever gotten the Max Health function to work? I remember making a thread trying to lower the player's max health, and for some reason that function wouldn't work.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 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.