This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g_Animations = { | |
["airport"] = { | |
"thrw_barl_thrw", | |
}, | |
["attractors"] = { | |
"stepsit_in", | |
"stepsit_loop", | |
"stepsit_out", | |
}, | |
["bar"] = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** FUNCTION CALLS [5000 ms] *** | |
7 ms ~ 1 c ~ 7.000 ms/c ~ guiCreateStaticImage ~ race/race_client.lua:84 | |
4 ms ~ 1 c ~ 4.000 ms/c ~ guiCreateStaticImage ~ race/race_client.lua:143 | |
22 ms ~ 6 c ~ 3.667 ms/c ~ engineLoadTXD ~ race/race_client.lua:52 | |
8 ms ~ 5 c ~ 1.600 ms/c ~ getThisResource ~ killmessages/gui.lua:37 | |
1 ms ~ 1 c ~ 1.000 ms/c ~ getElementData ~ race/editor_support_client.lua:7 | |
1 ms ~ 1 c ~ 1.000 ms/c ~ addEvent ~ race_toptimes/toptimes_client.lua:44 | |
1 ms ~ 1 c ~ 1.000 ms/c ~ guiCreateLabel ~ race_toptimes/toptimes_client.lua:175 | |
1 ms ~ 1 c ~ 1.000 ms/c ~ triggerServerEvent ~ race_toptimes/toptimes_client.lua:20 | |
1 ms ~ 1 c ~ 1.000 ms/c ~ guiSetVisible ~ race_toptimes/toptimes_client.lua:163 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** EVENT CALLS [10000 ms] *** | |
1 ms ~ 8 c ~ 0.125 ms/c ~ onClientColShapeHit ~ race/race_client.lua:214 | |
1 ms ~ 8 c ~ 0.125 ms/c ~ onClientElementDestroy ~ race/race_client.lua:1215 | |
1 ms ~ 12 c ~ 0.083 ms/c ~ onClientGUIMove ~ helpmanager/helpmanager_client.lua:101 | |
21 ms ~ 1498 c ~ 0.014 ms/c ~ onClientPreRender ~ MTA | |
0 ms ~ 1 c ~ 0.000 ms/c ~ onClientGUIBlur ~ freeroam/colorpicker.lua:85 | |
0 ms ~ 3 c ~ 0.000 ms/c ~ onClientMapStopping ~ race/race_client.lua:1207 | |
0 ms ~ 4 c ~ 0.000 ms/c ~ onClientGUIBlur ~ race/fancyprogress.lua:57 | |
0 ms ~ 2 c ~ 0.000 ms/c ~ onClientElementDestroy ~ helpmanager/helpmanager_client.lua:116 | |
0 ms ~ 2 c ~ 0.000 ms/c ~ onClientElementDataChange ~ race/race_client.lua:1229 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** EVENT FUNCTION CALLS [10000 ms] *** | |
- onClientPlayerSpawn (MTA) | |
0 ms ~ 5 c ~ 0.000 ms/c ~ race/race_client.lua:1332 | |
- onClientResourceStart (MTA) | |
1 ms ~ 6 c ~ 0.167 ms/c ~ killmessages/gui.lua:36 | |
0 ms ~ 6 c ~ 0.000 ms/c ~ helpmanager/helpmanager_client.lua:128 | |
0 ms ~ 6 c ~ 0.000 ms/c ~ votemanager/votemanager_client.lua:371 | |
0 ms ~ 6 c ~ 0.000 ms/c ~ race/_joiner_client.lua:29 | |
- onClientCall_race (MTA) | |
0 ms ~ 5 c ~ 0.000 ms/c ~ race/util_client.lua:7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USER_MENTION_REGEX = re.compile(ur"^<@([\d]+)>$") | |
USER_NICK_MENTION_REGEX = re.compile(ur"^<@!([\d]+)>$") | |
CHANNEL_MENTION_REGEX = re.compile(ur"^<#([\d]+)>$") | |
ROLE_MENTION_REGEX = re.compile(ur"^<@&([\d]+)>$") | |
USER_REVERSE_REGEX = re.compile(ur"^@(.*#[\d]{4})$") | |
CHANNEL_REVERSE_REGEX = re.compile(ur"^#(.*#[\d]{4})$") | |
ROLE_REVERSE_REGEX = re.compile(ur"^@(.*)$") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export GIT_WORK_TREE=/var/mta/project-name/mods/deathmatch/resources | |
git checkout -f | |
git clean -d -f -f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Warning, render targets require you to write into the meta.xml a min. version | |
-- <min_mta_version client="1.3.5"/> or <min_mta_version client="1.4.0"/> | |
-- Get the screen size | |
local screenWidth, screenHeight = guiGetScreenSize() | |
-- Resolution independet solution for width & height of the chart box | |
local box_width = (screenWidth * 0.75) | |
local box_height = (screenHeight * 0.50) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local map_setSoundProperty = {["SampleRate"] = 1, ["Tempo"] = 2, ["Pitch"] = 3, ["Reversed"] = 4} | |
function setSoundProperty(sound, property, value) | |
-- Only handle sound elements | |
if (not isElement(sound) or getElementType(sound) ~= "sound") then return end | |
-- Get the current properties | |
local properties = { getSoundProperties(sound) } | |
-- Get the index by using the property parameter | |
local index = map_setSoundProperty[property] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VehicleSize = { | |
-- [model] = {[1] = DistanceFromCentreOfMassToBaseOfModel; [2,3,4,5,6,7] = BoundingBox} -- Name | |
[400] = {1.136, -1.168, -2.689, -1.100, 1.150, 2.180, 0.857}, -- Landstalker | |
[401] = {0.868, -1.288, -2.612, -0.713, 1.279, 3.014, 1.010}, -- Bravura | |
[402] = {0.940, -1.207, -2.966, -0.843, 1.206, 2.700, 0.863}, -- Buffalo | |
[403] = {1.700, -1.575, -4.285, -1.261, 1.574, 4.717, 2.527}, -- Linerunner | |
[404] = {0.830, -1.101, -3.125, -0.605, 1.099, 2.237, 1.142}, -- Perennial | |
[405] = {1.000, -1.180, -3.175, -0.931, 1.151, 2.473, 0.816}, -- Sentinel | |
[406] = {1.751, -2.636, -5.894, -1.523, 2.633, 5.500, 2.436}, -- Dumper |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Camera state | |
local cameraEnabled = false | |
-- Camera radius | |
local sphereRadius = 5 | |
-- Cursor sensitivity | |
local sensitivity = 100 |
NewerOlder