diff --git a/GSC%3A-New-functions-and-methods.md b/GSC%3A-New-functions-and-methods.md index 6473301..6bf9334 100644 --- a/GSC%3A-New-functions-and-methods.md +++ b/GSC%3A-New-functions-and-methods.md @@ -24,12 +24,12 @@ Example: Mostly the new methods use the player only. Next, you can see the new features that have been added specifically for IW3SP-MOD and can't be called for stock game version. # Functions -* ``exec( command)``: Executes a console command +* ``Exec( command)``: Executes a console command * ``ToUpper( text)``: Converts text to uppercase ## Weapon -* ``getweapondamage( weapon name)``: Gets damage from a specific weapon -* ``setweapondamage( weapon name, value)``: Sets the damage for a specific weapon +* ``GetWeaponDamage( weapon name)``: Gets damage from a specific weapon +* ``SetWeaponDamage( weapon name, value)``: Sets the damage for a specific weapon * ``PlayViewmodelFX( FX, tag_name)``: Plays the FX on viewmodel weapon. Do not use loop FX, otherwise you can't delete this fx. Example: @@ -42,10 +42,10 @@ player_play_fx_test() ``` ## Discord -* ``setdiscorddetails( detail_name)``: Sets the detail status in discord rpc -* ``setdiscordstate( state_name)``: Sets the state status in discord rpc -* ``setbuttoninformation( label, url)``: Setup the second button in discord rpc -* ``setdiscordimage( image_url)``: Sets the image in discord rpc +* ``SetDiscordDetails( detail_name)``: Sets the detail status in discord rpc +* ``SetDiscordState( state_name)``: Sets the state status in discord rpc +* ``SetButtonInformation( label, url)``: Setup the second button in discord rpc +* ``SetDiscordImage( image_url)``: Sets the image in discord rpc Example: ```c @@ -53,20 +53,19 @@ main() { maps\_load::main(); wait 4; - // Localized strings also supported - setdiscorddetails("I go sleep!"); - setdiscordstate("I'm serious..."); - setbuttoninformation("MEGA MOD (YouTube link)", "https://www.youtube.com/watch?v=2Z4m4lnjxkY"); - setdiscordimage("https://media.tenor.com/fym4GQjsCRcAAAAM/kekwtf.gif"); + // P.S: Localized strings also supported + SetDiscordDetails("I go sleep!"); + SetDiscordState("I'm serious..."); + SetButtonInformation("MEGA MOD (YouTube link)", "https://www.youtube.com/watch?v=2Z4m4lnjxkY"); + SetDiscordImage("https://media.tenor.com/fym4GQjsCRcAAAAM/kekwtf.gif"); } ``` - # Player methods -* ``allowFire ``: Enables/Disables player fire +* ``AllowFire ``: Enables/Disables player fire * ``IsReloading()``: Checks state if player is reloading * ``IsSprinting()``: Checks state if player is sprinting * ``IsUsingNVG()``: Checks state if player is uses NVG -* ``isMantling()``: Checks state if player is mantling -* ``isSwapping()``: Checks state if player is swapping the weapon +* ``IsMantling()``: Checks state if player is mantling +* ``IsSwapping()``: Checks state if player is swapping the weapon