GTA 5 Copy Selected Player IP (LUA)

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Onaylı Üye
Katılım
22 Haz 2018
Mesajlar
49
Tepki puanı
6
Ödüller
4
Yaş
57
7 HİZMET YILI
You'll of course need a menu that supports lua, and you may need to rewrite some variables to fit your menus lua functions, but the logic should stay the same.

Lua:
menu.add_player_feature("Copy IP", "action", 0, function(f, pid)
    if not player.is_player_valid(pid) then
        return HANDLER_POP
    end
    
    local ip = player.get_player_ip(pid)
    utils.to_clipboard(string.format("%i.%i.%i.%i", ip >> 24 & 255, ip >> 16 & 255, ip >> 8 & 255, ip & 255))
    menu.notify("IP copied to clipboard", "Copy IP", 10, 0xFFFFFF00)
end)
 
Amon
Onaylı Üye
Katılım
2 May 2021
Mesajlar
48
Tepki puanı
6
Ödüller
2
Yaş
32
5 HİZMET YILI
well this seems to be more effective than others , i have to try this one later!
 
Onaylı Üye
Katılım
21 Haz 2021
Mesajlar
84
Çözümler
1
Tepki puanı
37
Ödüller
4
Yaş
23
Sosyal
4 HİZMET YILI
can you make a video on it?
 
5YC10P5
Onaylı Üye
Katılım
3 Şub 2019
Mesajlar
99
Çözümler
1
Tepki puanı
6
Ödüller
4
Yaş
28
7 HİZMET YILI
this one is going to be a lot more useful than the other scripts... for me
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst