Difference between revisions of "Native function returning false"

From GTAMods Wiki
Jump to navigation Jump to search
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Native
 
{{Native
|noheader=1
 
|np=1
 
|p1t=pointer
 
|p1d=pointer to variable to store function result
 
 
|r=1
 
|r=1
|rt=integer/float
+
|rt=bool
|rd=always 0
+
|rd=1 or 0, depending on your console
 
}}
 
}}
  
This [[native function]] ''always'' returns 0 as its result. GTA 4 has several functions that act like this. You could find what they are by using [[Special:WhatLinksHere/{{PAGENAMEE}}|this link]]. Note that for some function number of parameters could vary (being more than 1).
+
This [[native function]] ''always'' returns a hardcoded value of 0 or 1, depending on if the executable was compiled for Xbox 360, or PS3. The title and original information for this native were incorrect.  
  
 
[[Category:Native functions]]
 
[[Category:Native functions]]

Latest revision as of 07:47, 5 November 2023

Native_function_returning_false
Number of parameters: 0
Return value:
TypeDescription
bool1 or 0, depending on your console

This native function always returns a hardcoded value of 0 or 1, depending on if the executable was compiled for Xbox 360, or PS3. The title and original information for this native were incorrect.