Quantcast

Jump to content

» «
Photo

Finding the Parameters for Native Functions?

10 replies to this topic
formel117
  • formel117

    Programmer

  • Members
  • Joined: 13 Jun 2013
  • None

#1

Posted 17 February 2014 - 04:00 PM

Hello all, does anybody know how to find the parameters for Native Functions that doesn't show the parameters?


julionib
  • julionib

    Coder

  • Feroci
  • Joined: 13 Sep 2012
  • Brazil

#2

Posted 17 February 2014 - 04:24 PM

i use decompiled sco files to have an idea how to use and what are the parameters:

http://dev-c.com/gtaiv/scocl

using windows search + search file contents is easy find the scripts that use the native


formel117
  • formel117

    Programmer

  • Members
  • Joined: 13 Jun 2013
  • None

#3

Posted 18 February 2014 - 03:34 AM

I've downloaded the program but I can't find any of these .sco files to decompile. Where are they located?


julionib
  • julionib

    Coder

  • Feroci
  • Joined: 13 Sep 2012
  • Brazil

#4

Posted 18 February 2014 - 05:17 PM

ah, seems that they edited/remopved the content, you can find they here in the indicated file:

http://gtaxscripting...-usage-and.html


formel117
  • formel117

    Programmer

  • Members
  • Joined: 13 Jun 2013
  • None

#5

Posted 20 February 2014 - 09:23 PM

Is there any way to find out more about certain variables in the decompiled .SCO files?


Adam_P
  • Adam_P

    Player Hater

  • Members
  • Joined: 14 Feb 2014
  • None

#6

Posted 21 February 2014 - 08:04 PM

Ohi,

you can find alot of useful info here:

http://pastebin.com/n7CAnpZB


InfamousSabre
  • InfamousSabre

    Harpocrates

  • Members
  • Joined: 03 Jan 2013

#7

Posted 21 February 2014 - 08:35 PM

Ohi,

you can find alot of useful info here:

http://pastebin.com/n7CAnpZB

Scripthook header. Very useful. That file is like the bible to me when I'm scripting lol..
I only check .SCOs when this header, or gtamodding doesn't have the params.


formel117
  • formel117

    Programmer

  • Members
  • Joined: 13 Jun 2013
  • None

#8

Posted 22 February 2014 - 07:46 AM

Yeah I had already checked that file, it just says ScriptAny on the function I was interested in. I solved it though.


Wiebrendh
  • Wiebrendh

    C# Programmer

  • Members
  • Joined: 22 Mar 2014
  • Netherlands

#9

Posted 26 March 2014 - 03:22 PM

How do i use these functions?? I dont get what the f*ck i have to do with them

I thought something like this:

GTA.Native.Function.Call("GET_HOURS_OF_DAY", Hours); (Hours is a int variable)

But, with this nothing happens..


LordOfTheBongs
  • LordOfTheBongs

    Deceased

  • Members
  • Joined: 21 Sep 2013
  • None

#10

Posted 26 March 2014 - 03:44 PM

well... this is from the header file...

 

static u32 GetHoursOfDay() { return NativeInvoke::Invoke<u32>("GET_HOURS_OF_DAY"); }

 

so in c# u use like this...

 

int hour = GTA.Native.Function.Call<int>("GET_HOURS_OF_DAY");

 

ur lucky im bored at work lol


Wiebrendh
  • Wiebrendh

    C# Programmer

  • Members
  • Joined: 22 Mar 2014
  • Netherlands

#11

Posted 26 March 2014 - 06:54 PM

well... this is from the header file...

static u32 GetHoursOfDay() { return NativeInvoke::Invoke<u32>("GET_HOURS_OF_DAY"); }

so in c# u use like this...

int hour = GTA.Native.Function.Call<int>("GET_HOURS_OF_DAY");

ur lucky im bored at work lol

thnx mate, worked perfectly!

  • LordOfTheBongs likes this




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users