Difference between revisions of "Native function returning false"

From GTAMods Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
 
{{Native
 
{{Native
 
|noheader=1
 
|noheader=1
|np=1
 
|p1t=pointer
 
|p1d=pointer to variable to store function result
 
 
|r=1
 
|r=1
 
|rt=integer
 
|rt=integer
|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 functions 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.
  
 
[[Category:Native functions]]
 
[[Category:Native functions]]

Revision as of 07:44, 5 November 2023

Number of parameters: 0
Return value:
TypeDescription
integer1 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.