galleryvorti.blogg.se

Script hook v
Script hook v













script hook v
  1. #Script hook v 64 Bit#
  2. #Script hook v manual#
  3. #Script hook v code#

In order to find the names we are using well optimized template based native name bruteforce with multithread support. When you are mentioning custom natives please always specify the hash, because custom native names could be changed. Look at declarations of the known natives around yours (included file #5) PLAYER::_PLAYER_ID // 0x8DD5B838 - native with custom which does the same as PLAYER::PLAYER_IDĢ. PLAYER::PLAYER_ID - native with real name as well PLAYER::GET_PLAYER_PED - native with real name Hash must present when custom name is used, it's optional for real names Custom named natives (name does not match hash) must have _ prefix before the NAMEĤ. Starts with a GROUP name followed by ::ģ. Since we are using native groups (namespaces) and a lot of natives require to be named we must stick to the simple native naming convention, which should be applied to any tool that uses natives in a way seen to a user.Ģ.

script hook v

Actual native name hash check is perfomed using real hashes from x360 version.

#Script hook v 64 Bit#

GTA V PC version has native hashes replaced with random 64 bit values, which may differ between patches, however NATIVE DB runs on original PC hashes (call it hashes anyway) as well as ScriptHookV and accompanying tools which are performing native hash translation for natives from patches. If you want to make large description for some native/group of natves or publish some enum list then you need to post it on gtaforums/gtamodding and put the link into corresponding native description here.

script hook v

#Script hook v code#

In order to put more understanding in whatever natives do they were grouped the way original developers grouped them, it makes code more readable and when you see an unknown native you already know which group it belongs to. The good thing is that we know for sure how many parameters and results each one of these natives has (because when script calls native it uses this values and all natives are in use), so we need to name their params and types here as well.

#Script hook v manual#

There is no original native name list in GTA V, name hashes were used instead, however during initial research we were managed to recover ~2600 native names using bruteforce and manual checking afterwards. GTA V features ~5200 natives and almost all of these functions are in use in the original game scripts, this means that while building game's main executable only the natives required by the scripts are included (IV had ~3000 natives and the scripts were using only 2/3 of them).















Script hook v