Networkcash::networkSpentPayVehicleInsurancePremium: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
According to how I understood this in the freemode script alone,<br>The first parameter is determined by a function named, func_5749 within the freemode script which has a list of all the vehicles and a set price to return which some vehicles deals with globals as well. So the first parameter is basically the set in stone insurance cost it's gonna charge you for that specific vehicle model.<br><br>The second parameter whoever put it was right, they call GET_ENTITY_MODEL with the vehicle as the paremeter.<br><br>The third parameter is the network handle as they call their little struct&lt;13&gt; func or atleast how the script decompiled it to look which in lamens terms just returns the network handle of the previous owner based on DECOR_GET_INT(vehicle, 'Previous_Owner').<br><br>The fourth parameter is a bool that returns true/false depending on if your bank balance is greater then 0.<br><br>The fifth and last parameter is a bool that returns true/false depending on if you have the money for the car based on the cost returned by func_5749. In the freemode script eg,<br>bool hasTheMoney = NETWORKCASH::_GET_BANK_BALANCE() &lt; carCost.
According to how I understood this in the freemode script alone,<br>The first parameter is determined by a function named, func_5749 within the freemode script which has a list of all the vehicles and a set price to return which some vehicles deals with globals as well. So the first parameter is basically the set in stone insurance cost it's gonna charge you for that specific vehicle model.<br><br>The second parameter whoever put it was right, they call GET_ENTITY_MODEL with the vehicle as the paremeter.<br><br>The third parameter is the network handle as they call their little struct&lt;13&gt; func or atleast how the script decompiled it to look which in lamens terms just returns the network handle of the previous owner based on DECOR_GET_INT(vehicle, 'Previous_Owner').<br><br>The fourth parameter is a bool that returns true/false depending on if your bank balance is greater then 0.<br><br>The fifth and last parameter is a bool that returns true/false depending on if you have the money for the car based on the cost returned by func_5749. In the freemode script eg,<br>bool hasTheMoney = NETWORKCASH::_GET_BANK_BALANCE() &lt; carCost.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">networkcash.networkSpentPayVehicleInsurancePremium(p0, VehicleModel, p2, p3, p4);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.networkcash.networkSpentPayVehicleInsurancePremium(p0, VehicleModel, p2, p3, p4);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''p0:''' unknown (to be checked)
*'''p0:''' unknown (to be checked)
Line 12: Line 12:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Networkcash_function_c}}
{{Networkcash_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:28, 6 May 2017

According to how I understood this in the freemode script alone,
The first parameter is determined by a function named, func_5749 within the freemode script which has a list of all the vehicles and a set price to return which some vehicles deals with globals as well. So the first parameter is basically the set in stone insurance cost it's gonna charge you for that specific vehicle model.

The second parameter whoever put it was right, they call GET_ENTITY_MODEL with the vehicle as the paremeter.

The third parameter is the network handle as they call their little struct<13> func or atleast how the script decompiled it to look which in lamens terms just returns the network handle of the previous owner based on DECOR_GET_INT(vehicle, 'Previous_Owner').

The fourth parameter is a bool that returns true/false depending on if your bank balance is greater then 0.

The fifth and last parameter is a bool that returns true/false depending on if you have the money for the car based on the cost returned by func_5749. In the freemode script eg,
bool hasTheMoney = NETWORKCASH::_GET_BANK_BALANCE() < carCost.

Syntax

mp.game.networkcash.networkSpentPayVehicleInsurancePremium(p0, VehicleModel, p2, p3, p4);

Required Arguments

  • p0: unknown (to be checked)
  • VehicleModel: Model hash or name
  • p2: unknown (to be checked)
  • p3: Boolean
  • p4: Boolean

Return value

  • Undefined

Example

// todo

See also

Template:Networkcash s function c