- 131
- 29
Lua:
local vkeys = require('vkeys')
local sampev = require 'lib.samp.events'
local housestate
function main()
while true do wait(0)
if isKeyDown(0xA2) and isKeyJustPressed(0x02) then --VK_LCONTROL + VK_RBUTTON
sampSendChat('/house')
housestate = true
end
if housestate == true then
function sampev.onShowDialog(dialogId, dialogStyle, dialogTitle, okButtonText, cancelButtonText, dialogText)
if dialogId == 174 then
sampSendDialogResponse(174,1,0)
sampCloseCurrentDialogWithButton(0)
housestate = false
return false
end
end
end
end
end