{
"E": {
"prefix": "E",
"body": [
"IsControlJustPressed(0, 38)"
]
},
"RegisterCommand": {
"prefix": "RegisterCommand",
"body": [
"RegisterCommand(\"$1\", function()\r\rend)"
]
},
"fxmanifest": {
"prefix": "fxmanifest",
"body": [
"fx_version 'cerulean'\rgame 'gta5'\rlua54 'yes'\r\r",
"shared_scripts {\r\t'config.lua',\r}\r\r",
"client_scripts {\r\t'client.lua',\r}\r\r",
"server_scripts {\r\t'@oxmysql/lib/MySQL.lua',\r\t'server.lua',\r}\r\r",
"ui_page {\r\t'ui/index.html',\r}\r\r",
"files {\r",
"\t'ui/ui.html',",
"\t'ui/styles.css',",
"\t'ui/scripts.js',",
"\t'ui/jquery-3.6.0.min.js',",
"\t'ui/assets/*.png',",
"}\r\r",
"dependency 'oxmysql'",
]
},
"print table": {
"prefix": "printtable",
"body": [
"print(json.encode($1, {indent = true}))"
]
},
"qbcoreexport": {
"prefix": "qbcoreexport",
"body": [
"QBCore = exports['qb-core']:GetCoreObject()"
]
},
"CreateThread": {
"prefix": "createthread",
"body": [
"CreateThread(function()\r\t$1\rend)",
]
},
"forkv": {
"prefix": "forkv",
"body": [
"for k,v do\r\t$1\rend",
]
},
"jsevent": {
"prefix": "jsevent",
"body": [
"window.addEventListener('message', function(event) {",
"\tvar item = event.data;",
"\tif (item.ui === 'ui_name') {\r\t$1\r\t}",
"});"
]
},
"nuicallback": {
"prefix": "nuicallback",
"body": [
"RegisterNUICallback(\"$1\", function(data, cb)\r\t",
"end)"
]
}
}