Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
wwww
--lua 5.3 print ("by rdnkv!") local samp = require 'samp.events' function samp.onSendPlayerSync(data) printStringNow(data.keysData..'~n~'..getKeys(data.keysData), 1000) end function getKeys(data) local keys = { ['Tab'] = 1, ['C'] = 2, ['Ctrl'] = 4, ['Sprint'] = 8, ['Enter'] = 16, ['Jump'] = 32, ['RMB'] = 128, ['MMB'] = 512, ['Alt'] = 1024, ['Num 4'] = 8192, ['Num 6'] = 16384, } local pressed = '' for k, v in pairs(keys) do if bit.band(data, v) > 0 then pressed = pressed == '' and k or pressed..' + '..k end end return pressed == '' and 'No' or pressed end
run
|
edit
|
history
|
help
0
Truly random numbers (Lua)
Hakusu
Area of Sector Calculator
PAID HACK PuBG
Random number generation with ranges (Lua)
Basic class example
PAID HACK PuBG
1
multiline string
Random Item Generator (1 year)