updates
This commit is contained in:
1827
ts-lua/dist/lualib_bundle.lua
vendored
1827
ts-lua/dist/lualib_bundle.lua
vendored
File diff suppressed because it is too large
Load Diff
18
ts-lua/dist/test.lua
vendored
18
ts-lua/dist/test.lua
vendored
@@ -1,23 +1,9 @@
|
|||||||
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
||||||
menu:add_feature(
|
menu.add_feature(
|
||||||
"test",
|
"test",
|
||||||
"action",
|
"action",
|
||||||
0,
|
0,
|
||||||
function()
|
function()
|
||||||
do
|
ui.notify_above_map("test", "test tile", 140)
|
||||||
local i = 0
|
|
||||||
while i < 120 do
|
|
||||||
scriptdraw:draw_rect(
|
|
||||||
v2(nil, 1, 1),
|
|
||||||
v2(nil, 1, 1),
|
|
||||||
4278190080
|
|
||||||
)
|
|
||||||
local ____ = (function()
|
|
||||||
local ____tmp = i
|
|
||||||
i = ____tmp + 1
|
|
||||||
return ____tmp
|
|
||||||
end)() and system:wait(0)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,6 +1 @@
|
|||||||
menu.add_feature('test', 'action', 0, () => {
|
menu.add_feature('test', 'action', 0, () => ui.notify_above_map('from TypeScript', 'Hello', 140))
|
||||||
|
|
||||||
for (let i = 0; i < 120; i++ && system.wait(0))
|
|
||||||
scriptdraw.draw_rect(v2(1, 1), v2(1, 1), 4278190080)
|
|
||||||
|
|
||||||
})
|
|
||||||
1
ts-lua/types/2take1.d.ts
vendored
1
ts-lua/types/2take1.d.ts
vendored
@@ -19,6 +19,7 @@ type Feature = number;
|
|||||||
type vector<T> = object;
|
type vector<T> = object;
|
||||||
type uint8_t = number;
|
type uint8_t = number;
|
||||||
type uint32_t = number;
|
type uint32_t = number;
|
||||||
|
type int32_t = number;
|
||||||
type uint64_t = number;
|
type uint64_t = number;
|
||||||
type integer = number;
|
type integer = number;
|
||||||
type int = number;
|
type int = number;
|
||||||
|
|||||||
1
ts-lua/types/D3D.d.ts
vendored
1
ts-lua/types/D3D.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* D3D Functions
|
* D3D Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace d3d {
|
declare namespace d3d {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/Hooks.d.ts
vendored
1
ts-lua/types/Hooks.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Hook Functions
|
* Hook Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace hook {
|
declare namespace hook {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/Input.d.ts
vendored
1
ts-lua/types/Input.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Input Functions
|
* Input Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace input {
|
declare namespace input {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/Menu.d.ts
vendored
1
ts-lua/types/Menu.d.ts
vendored
@@ -3,6 +3,7 @@
|
|||||||
/**
|
/**
|
||||||
* Menu Functions
|
* Menu Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace menu {
|
declare namespace menu {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/AI.d.ts
vendored
1
ts-lua/types/RAGE/AI.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* AI Functions
|
* AI Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace ai {
|
declare namespace ai {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Audio.d.ts
vendored
1
ts-lua/types/RAGE/Audio.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Audio Functions
|
* Audio Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace audio {
|
declare namespace audio {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Cam.d.ts
vendored
1
ts-lua/types/RAGE/Cam.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Cam Functions
|
* Cam Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace cam {
|
declare namespace cam {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Control.d.ts
vendored
1
ts-lua/types/RAGE/Control.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Control Functions
|
* Control Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace control {
|
declare namespace control {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Cutscene.d.ts
vendored
1
ts-lua/types/RAGE/Cutscene.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Cutscene Functions
|
* Cutscene Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace cutscene {
|
declare namespace cutscene {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Decorator.d.ts
vendored
1
ts-lua/types/RAGE/Decorator.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Decorator Functions
|
* Decorator Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace decorator {
|
declare namespace decorator {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Entity.d.ts
vendored
1
ts-lua/types/RAGE/Entity.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Entity Functions
|
* Entity Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace entity {
|
declare namespace entity {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Fire.d.ts
vendored
1
ts-lua/types/RAGE/Fire.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Fire Functions
|
* Fire Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace fire {
|
declare namespace fire {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Gameplay.d.ts
vendored
1
ts-lua/types/RAGE/Gameplay.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Gameplay Functions
|
* Gameplay Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace gameplay {
|
declare namespace gameplay {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Graphics.d.ts
vendored
1
ts-lua/types/RAGE/Graphics.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Graphics Functions
|
* Graphics Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace graphics {
|
declare namespace graphics {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Interior.d.ts
vendored
1
ts-lua/types/RAGE/Interior.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Interior Functions
|
* Interior Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace interior {
|
declare namespace interior {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Network.d.ts
vendored
1
ts-lua/types/RAGE/Network.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Network Functions
|
* Network Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace network {
|
declare namespace network {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Object.d.ts
vendored
1
ts-lua/types/RAGE/Object.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Object Functions
|
* Object Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace object {
|
declare namespace object {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Ped.d.ts
vendored
1
ts-lua/types/RAGE/Ped.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Ped Functions
|
* Ped Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace ped {
|
declare namespace ped {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Player.d.ts
vendored
1
ts-lua/types/RAGE/Player.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Player Functions
|
* Player Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace player {
|
declare namespace player {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Script.d.ts
vendored
1
ts-lua/types/RAGE/Script.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Script Functions
|
* Script Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace script {
|
declare namespace script {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/ScriptDraw.d.ts
vendored
1
ts-lua/types/RAGE/ScriptDraw.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* ScriptDraw Functions
|
* ScriptDraw Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace scriptdraw {
|
declare namespace scriptdraw {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Stats.d.ts
vendored
1
ts-lua/types/RAGE/Stats.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Stats Functions
|
* Stats Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace stats {
|
declare namespace stats {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Streaming.d.ts
vendored
1
ts-lua/types/RAGE/Streaming.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Streaming Functions
|
* Streaming Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace streaming {
|
declare namespace streaming {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/System.d.ts
vendored
1
ts-lua/types/RAGE/System.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* System Functions
|
* System Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace system {
|
declare namespace system {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Time.d.ts
vendored
1
ts-lua/types/RAGE/Time.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Time Functions
|
* Time Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace time {
|
declare namespace time {
|
||||||
|
|
||||||
|
|||||||
36
ts-lua/types/RAGE/UI.d.ts
vendored
36
ts-lua/types/RAGE/UI.d.ts
vendored
@@ -1,10 +1,46 @@
|
|||||||
/**
|
/**
|
||||||
* UI Functions
|
* UI Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace ui {
|
declare namespace ui {
|
||||||
|
|
||||||
|
type Blip = any;
|
||||||
|
type Pickup = any;
|
||||||
|
|
||||||
|
function notify_above_map(message: string, title: string, color: int): void
|
||||||
|
function get_entity_from_blip(blip: Blip): Entity
|
||||||
|
function get_blip_from_entity(entity: Entity): Blip
|
||||||
|
function add_blip_for_entity(entity: Entity): Blip
|
||||||
|
function set_blip_sprite(blip: Blip, spriteId: int): boolean
|
||||||
|
function set_blip_colour(blip: Blip, colour: int): boolean
|
||||||
|
function hide_hud_component_this_frame(componentId: int): void
|
||||||
|
function hide_hud_and_radar_this_frame(): void
|
||||||
|
function get_label_text(label: string): string
|
||||||
|
function draw_rect(x: float, y: float, width: float, height: float, r: int, g: int, b: int, a: int): void
|
||||||
|
function draw_line(pos1: v3, pos2: v3, r: int, g: int, b: int, a: int): void
|
||||||
|
function draw_text(pszText: string, pos: v2): void
|
||||||
|
function set_text_scale(scale: float): void
|
||||||
|
function set_text_color(r: int, g: int, b: int, a: int): void
|
||||||
|
function set_text_font(font: int): void
|
||||||
|
function set_text_wrap(start: float, end: float): void
|
||||||
|
function set_text_outline(b: boolean): void
|
||||||
|
function set_text_centre(b: boolean): void
|
||||||
|
function set_new_waypoint(coord: v2): void
|
||||||
|
function get_waypoint_coord(): v2
|
||||||
|
function is_hud_component_active(componentId: int32_t): boolean
|
||||||
|
function show_hud_component_this_frame(componentId: int32_t): void
|
||||||
|
function set_waypoint_off(): void
|
||||||
|
function set_blip_as_mission_creator_blip(blip: Blip, toggle: boolean): boolean
|
||||||
|
function is_mission_creator_blip(blip: Blip): boolean
|
||||||
|
function add_blip_for_radius(pos: v3, radius: float): Blip
|
||||||
|
function add_blip_for_pickup(pickup: Pickup): Blip
|
||||||
|
function add_blip_for_coord(pos: v3): Blip
|
||||||
|
function set_blip_coord(blip: Blip, coord: v3): void
|
||||||
|
function get_blip_coord(blip: Blip): v3
|
||||||
|
function remove_blip(blip: Blip): boolean
|
||||||
|
function set_blip_route(blip: Blip, toggle: boolean): void
|
||||||
|
function set_blip_route_color(blip: Blip, color: int32_t): void
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Utils.d.ts
vendored
1
ts-lua/types/RAGE/Utils.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Utils Functions
|
* Utils Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace utils {
|
declare namespace utils {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Vehicle.d.ts
vendored
1
ts-lua/types/RAGE/Vehicle.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Vehicle Functions
|
* Vehicle Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace vehicle {
|
declare namespace vehicle {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Water.d.ts
vendored
1
ts-lua/types/RAGE/Water.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Water Functions
|
* Water Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace water {
|
declare namespace water {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Weapon.d.ts
vendored
1
ts-lua/types/RAGE/Weapon.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Weapon Functions
|
* Weapon Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace weapon {
|
declare namespace weapon {
|
||||||
|
|
||||||
|
|||||||
1
ts-lua/types/RAGE/Worldprobe.d.ts
vendored
1
ts-lua/types/RAGE/Worldprobe.d.ts
vendored
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Worldprobe Functions
|
* Worldprobe Functions
|
||||||
* @public
|
* @public
|
||||||
|
* @noSelf
|
||||||
*/
|
*/
|
||||||
declare namespace worldprobe {
|
declare namespace worldprobe {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user