Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local hook = require 'lib.samp.events'
- function main()
- while not isSampAvailable() do wait(0) end
- while true do
- wait(0)
- local _, id = sampGetPlayerIdByCharHandle(playerPed)
- end
- end
- function hook.onShowDialog(dialogId, dialogStyle, dialogTitle, okButtonText, cancelButtonText, dialogText)
- if dialogText:find('Налог')then
- local nalog = text:match("Налог: (.+) / 40 000")
- sampAddChatMessage(string.format('налог %s', nalog), -1)
- end
- car = storeCarCharIsInNoSave(playerPed)
- _, idcara = sampGetVehicleIdByCarHandle(car)
- if dialogId == 162 and dialogText:find(idcara) then
- sampSendChat("/carpass "..id..idcara)
- end
- end
- function hook.onServerMessage(color, text)
- if text:find("{DC4747}Для управления поворотниками") then
- sampSendChat("/cars")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement