Jump to content

Lordkrypton

Members
  • Content Count

    20
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Lordkrypton

  • Rank
    Civilian
  1. Thank you but, i mean, how to link the ped who click in client-side to server-side, i know i can add arguments to triggerServerEvent but wich one ? Excuse my bad english Thnak you
  2. Thank you But i don't understand how to use the button. Look at what i did. Client : window = guiCreateWindow(0.25,0.25,0.1,0.5,"Vip Panel",true) guiSetAlpha( window, 1 ) guiWindowSetMovable(window,true) guiWindowSetSizable(window,false) guiSetVisible(window,false) showCursor(false) buttonjet = guiCreateButton( 0.05, 0.1, 1, 0.1, "Jetpack", true, window ) addEventHandler ( "onClientGUIClick", buttonjet, givejetpack, false ) function givejetpack () triggerServerEvent ( "onGiveJet", resourceRoot ) end --Binding to set window visible bindKey('k','down', functio
  3. Hi, This is the first time i create a script with both server side & client side. It's like a vip panel, and only players for are vip ( meaning are friendly ) can open it. I don't understand how to make the jetpack button call a function in the server side ( givePedJetPack ). Can someone help me ? Thank you window = guiCreateWindow(0.25,0.25,0.1,0.5,"Vip Panel",true) guiSetAlpha( window, 1 ) guiWindowSetMovable(window,true) guiWindowSetSizable(window,false) guiSetVisible(window,false) showCursor(false) button = guiCreateButton( 0.05, 0.1, 1, 0.1, "Jetpack", true, window )
  4. I create new file client.lua and paste it local r, g, b if (rank == 'Admin') then r, g, b = 255, 0, 0 elseif (rank == 'Moderator') then r, g, b = 0, 255, 0 elseif (rank =='Vip') then r, g, b = 255, 215, 0 elseif (rank == 'Guest') then r, g, b = 224, 255, 255 end But it's didn't work, there is no way to do it server-side like the output chatbox function ? Thanks
  5. How to make "Admin", "VIP", "Moderator" in color. Like create a variable for exemple : local admin = text("Admin", 255, 0, 255) ? and after setElementData ( source, "Rank", admin ) Thank you
  6. lol i'm stupid x) It's work so.. thank you a lot
  7. exports.scoreboard:addScoreboardColumn('Rank') function onJoin() setElementData ( source, "Rank", "Guest" ) end addEventHandler("onPlayerJoin",root,onJoin) function onLogin(_,acc) local aname = getAccountName(acc) if isObjectInACLGroup ( "user." .. aname, aclGetGroup ( "Admin" ) ) then setElementData ( source, "Rank", "Admin" ) elseif isObjectInACLGroup ( "user." .. aname, aclGetGroup ( "Moderator" ) ) then setElementData ( source, "Rank", "Moderator" ) elseif isObjectInACLGroup ( "user." .. aname, aclGetGroup ( "Vip" ) ) then setElementData ( sour
  8. thank you for fast answer ! exports.scoreboard:addScoreboardColumn('Rank') function onJoin() setElementData ( source, "Rank", "Guest" ) end addEventHandler("onPlayerJoin",root,onJoin) function onLogin() local aname = getAccountName(source) if isObjectInACLGroup ( "user." .. aname, aclGetGroup ( "Admin" ) ) then setElementData ( source, "Rank", "Admin" ) elseif isObjectInACLGroup ( "user." .. aname, aclGetGroup ( "Moderator" ) ) then setElementData ( source, "Rank", "Moderator" ) elseif isObjectInACLGroup ( "user." .. aname, aclGetGroup ( "Vip" ) ) t
  9. Hi everyone I want to create a script who set a rank on every player : guest, player, vip, moderator, admin. I started to create something, but i have to reconnect everytime for test my script. Look exports.scoreboard:addScoreboardColumn('Rank') function rank() local aname = getAccountName(source) if isObjectInACLGroup ( "user." .. aname, aclGetGroup ( "Admin" ) ) then setElementData ( source , "Rank" , "Admin" ) else if isGuestAccount ( source ) then setElementData ( source , "Rank" , "Guest" ) else
  10. Hi, I have make a script who create weapon on some defined place every random time. There is a quick way to convert x y z to region name like : Marine ( Los santos ) ? Thank you
  11. bad argument @ Set timer, expect number get bolean, i try something from https://wiki.multitheftauto.com/wiki/SetTimer but still bugged x) Thank you a lot for your help
×
×
  • Create New...