Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local vkeys = require "vkeys"
- h = 14 -- hodiny
- m = 30 -- minuty
- keyOn = vkeys.VK_1 -- tlacitko, ktorym budete zapinat, za vkeys. dopisete virtual key code (napr.: VK_X)
- keyOff = vkeys.VK_2 -- tlacitko, ktorym budete vypinat
- function main()
- while true do
- wait(0)
- if isPlayerPlaying(PLAYER_PED) and wasKeyPressed(keyOn) then
- while true do
- wait(1)
- setTimeOfDay(h,m)
- if wasKeyPressed(keyOff) then
- return 1
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement