Skip to content

Commit e3bbde5

Browse files
bakatamegitbook-bot
authored andcommitted
GitBook: [#3] No subject
1 parent 916ad1a commit e3bbde5

File tree

11 files changed

+277
-1
lines changed

11 files changed

+277
-1
lines changed

.gitbook/assets/Rifk7.png

8.52 KB
Loading

.gitbook/assets/hvhbbs.com_smiley.gif

549 KB
Loading

README.md

+40-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,40 @@
1-
# rifk7-api-docs
1+
---
2+
description: Welcome to the Rifk7 lua wiki!
3+
---
4+
5+
# Welcome
6+
7+
<figure><img src=".gitbook/assets/Rifk7.png" alt=""><figcaption></figcaption></figure>
8+
9+
## About
10+
11+
rifk7 is a very good cheat for Antiaim and Ragebot, with a team that can provide quick help and a great forum environment
12+
13+
{% hint style="info" %}
14+
Lua version: latest ( 5.4.4 )
15+
{% endhint %}
16+
17+
## Getting Started
18+
19+
For information on how to get started with lua scripting, check out the link below.
20+
21+
{% content-ref url="useful-information/quick-start.md" %}
22+
[quick-start.md](useful-information/quick-start.md)
23+
{% endcontent-ref %}
24+
25+
## Current features
26+
27+
{% tabs %}
28+
{% tab title="Library" %}
29+
* Base
30+
* Corountine
31+
* Math
32+
* String
33+
* Utf8
34+
* Bit32
35+
{% endtab %}
36+
{% endtabs %}
37+
38+
## Documentation errors
39+
40+
This documentation was made by Serein.Fn and Robonyan\_tame. Please report any errors in the documentation either to us in a private message on the forum or to Robonyan\_tame#4147 on Discord.

SUMMARY.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Table of contents
2+
3+
* [Welcome](README.md)
4+
* [Official Website](https://rifk7.com/index.php)
5+
6+
## Useful information
7+
8+
* [✈ Quick start](useful-information/quick-start.md)
9+
* [🔨 Common knowledge](useful-information/common-knowledge.md)
10+
11+
## Documentation
12+
13+
* [Events](documentation/events.md)
14+
* [Class](documentation/class/README.md)
15+
* [Page 3](documentation/class/page-3.md)
16+
* [Variables](documentation/variables/README.md)
17+
* [💻 menu](documentation/variables/menu.md)

documentation/class/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Class
2+

documentation/class/page-3.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Page 3
2+

documentation/events.md

+133
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
# Events
2+
3+
## List of game events:
4+
5+
{% embed url="https://wiki.alliedmods.net/Counter-Strike:_Global_Offensive_Events" %}
6+
Official CS:GO events
7+
{% endembed %}
8+
9+
```lua
10+
function test(event)
11+
if(event ~= nil) then
12+
print(event:get_name());
13+
end
14+
end
15+
16+
hooks.add_hook("on_event", test);
17+
```
18+
19+
## List of events:
20+
21+
### on\_draw
22+
23+
Fired every frame. Most functions from the renderer namespace can only be used here
24+
25+
```lua
26+
function test()
27+
if (engine.is_ingame() and engine.is_connected()) then
28+
renderer.draw_text(renderer.get_center().x, renderer.get_center().y + 15, "choke me daddy", 255, 255, 255, 255, font_flags.centered_x);
29+
renderer.draw_line_multicolored(renderer.get_center().x, renderer.get_center().y + 35, renderer.get_center().x + 40 * clientstate.get_choked_ticks() / 15.0, renderer.get_center().y + 35, 255, 255, 255, 255, 255, 255, 255, 0);
30+
renderer.draw_line_multicolored(renderer.get_center().x, renderer.get_center().y + 35, renderer.get_center().x - 40 * clientstate.get_choked_ticks() / 15.0, renderer.get_center().y + 35, 255, 255, 255, 255, 255, 255, 255, 0);
31+
end
32+
end
33+
34+
hooks.add_hook("on_draw", test)
35+
```
36+
37+
### on\_paint
38+
39+
Fired every frame.&#x20;
40+
41+
### on\_frame\_end
42+
43+
Fired every frame.&#x20;
44+
45+
### on\_level\_clear
46+
47+
on\_level\_init\_pre\_entity
48+
49+
### on\_event
50+
51+
Fired game events
52+
53+
#### 🔗 struct <mark style="color:blue;">`c_game_event`</mark>
54+
55+
| | Type | Description |
56+
| ----------- | ------ | -------------------------------------- |
57+
| get\_name | string | Returns the name string of the event. |
58+
| get\_bool | bool | Returns the bool value of the event. |
59+
| get\_int | int | Returns the int value of the event. |
60+
| get\_float | float | Returns the float value of the event. |
61+
| get\_string | string | Returns the string value of the event. |
62+
| set\_bool | void | Set the bool value of the event |
63+
| set\_int | void | Set the int value of the event |
64+
| set\_float | void | Set the float value of the event |
65+
| set\_string | void | Set the string value of the event |
66+
67+
### on\_drawmodel&#x20;
68+
69+
on drawing model&#x20;
70+
71+
#### 🔗 struct <mark style="color:blue;">`lua_dme`</mark>
72+
73+
| | Type | Description |
74+
| - | ---- | ----------- |
75+
| | | |
76+
| | | |
77+
| | | |
78+
79+
#### 🔗 struct <mark style="color:blue;">`original`</mark>
80+
81+
| | | |
82+
| - | - | - |
83+
| | | |
84+
| | | |
85+
| | | |
86+
87+
### on\_drawmodel
88+
89+
start of createmove
90+
91+
#### 🔗 struct <mark style="color:blue;">`c_user_cmd`</mark>
92+
93+
| | | |
94+
| - | - | - |
95+
| | | |
96+
| | | |
97+
| | | |
98+
99+
### on\_createmove\_pre\_antiaim
100+
101+
before antiaim
102+
103+
#### 🔗 struct <mark style="color:blue;">`lua_createmove`</mark>
104+
105+
| | | |
106+
| - | - | - |
107+
| | | |
108+
| | | |
109+
| | | |
110+
111+
### on\_override\_view
112+
113+
override view - every frame
114+
115+
### on\_render\_view&#x20;
116+
117+
render view - every frame&#x20;
118+
119+
#### 🔗 struct <mark style="color:blue;">`c_view_setup`</mark>
120+
121+
| | | |
122+
| - | - | - |
123+
| | | |
124+
| | | |
125+
| | | |
126+
127+
128+
129+
< lua\_shot\_info > on\_shot\_info - createmove - on ragebot shot&#x20;
130+
131+
< lua\_hitscan > on\_hitscan - createmove - on ragebot hitbox selection&#x20;
132+
133+
< lua\_multipoints > on\_multipoints - createmove - on ragebot multipoint setup

documentation/variables/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Variables
2+

documentation/variables/menu.md

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# 💻 menu
2+
3+
## Functions:
4+
5+
### is\_visible
6+
7+
`menu.is_visible():` <mark style="color:purple;">`bool`</mark>
8+
9+
Detects whether the menu is open (returns true if open)
10+
11+
### get\_menu\_pos
12+
13+
`menu.get_menu_pos():` <mark style="color:purple;">`c_vector2d`</mark>
14+
15+
Detect menu position
16+
17+
### get\_menu\_size
18+
19+
`menu.get_menu_size():` <mark style="color:purple;">`c_vector2d`</mark>
20+
21+
return menu size
22+
23+
### get\_uid
24+
25+
`menu.get_uid():` <mark style="color:purple;">`int`</mark>
26+
27+
### get\_username
28+
29+
`menu.get_username():` <mark style="color:purple;">`string`</mark>
30+
31+
### get\_smooth\_colors
32+
33+
`menu.get_smooth_colors():` <mark style="color:purple;">`color`</mark>
34+
35+
### override\_visibility
36+
37+
`menu.override_visibility(std::string text,bool):` <mark style="color:purple;">`void`</mark>
38+
39+
Whether the settings menu is visible
40+
41+
### add\_separator
42+
43+
`menu.add_separator(std::string):` <mark style="color:purple;">`void`</mark>
44+
45+
### add\_text
46+
47+
`menu.add_text(std::string):` <mark style="color:purple;">`void`</mark>
48+
49+
### set\_text
50+
51+
`menu.set_text(std::string):` <mark style="color:purple;">`void`</mark>
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# 🔨 Common knowledge
2+
3+
### Script environment
4+
5+
Each script runs in it's own separate environment. This means that global variables can not be reused between scripts.

useful-information/quick-start.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
description: Guide to writing lua scripts for Rifk7
3+
---
4+
5+
# ✈ Quick start
6+
7+
## :clipboard: Text editor
8+
9+
The best text editors make it simple and easy to code without formatting issues corrupting it.
10+
11+
| Text editor | Link |
12+
| ------------------ | --------------------- |
13+
| Visual Studio Code | code.visualstudio.com |
14+
| Sublime Text | sublimetext.com |
15+
| Notepad++ | notepad-plus-plus.org |
16+
17+
## 🔰 Beginner's guide
18+
19+
If you're new to Lua scripting, we'd recommend to take a look at the «[Lua in 5 minutes](https://learnxinyminutes.com/docs/lua/)» guide
20+
21+
## :blue\_book: Learn more
22+
23+
{% content-ref url="common-knowledge.md" %}
24+
[common-knowledge.md](common-knowledge.md)
25+
{% endcontent-ref %}

0 commit comments

Comments
 (0)