Synthe1

Members
  • Content Count

    12
  • Joined

  • Last visited

Community Reputation

1 Neutral

About Synthe1

  • Rank
    Square

Recent Profile Visitors

197 profile views
  1. Oh my iq droped. Thank u very much!!
  2. I tried this function(message,type) if (string.find(message, "!skills")) and not (string.find(message, " !skills")) then local account = getPlayerAccount(source) local kills = (getAccountData(account, "kills") or 0) local nick = getPlayerName(source) local nickA = string.gsub(nick, "#%x%x%x%x%x%x", "") if (string.find(message, "!skills")) and not (string.find(message, " !skills")) then local account = getPlayerAccount(source) local kills = (getAccountData(account, "kills") or 0) local nick = getPlayerName(source) local nickA = string.gsub(nick, "#%x%x%x%x%x%x", "") if getElementData(localPlayer,"language") == lang1 then outputChatBox("#FFFFFF "..nickA.. " #00CC40killed #FFFFFF ["..kills.."] #00CC40players!",255,0,0,true) elseif getElementData(localPlayer,"language") == lang1 then outputChatBox("#FFFFFF "..nickA.. " #00CC40zabil #FFFFFF ["..kills.."] #00CC40hračov na CW!",255,0,0,true) Its server side but it doesnt work. Can u help me with this last thing please?
  3. I got it, thanks, I have last question, how i can use that language 'system' for serverside?
  4. Sorry but I have another problem with that. How i can save it? I mean, when I go reconnect I have to set the language again.
  5. Hey, thanks for answer but It doesnt work. There is no error in debugscript. my code : local lang1 = "en" local lang2 = "cz" function element(cm,lang) if lang then if lang == tostring(lang1) then setElementData(localPlayer,"language",lang1) elseif lang == tostring(lang2) then setElementData(localPlayer,"language",lang2) end end end addCommandHandler("setlanguage",element) function w1 () if getElementData(localPlayer,"language") == lang1 then outputChatBox("#bcff00[!] Don't forget to visit us in our forum", getRootElement(), 255, 255, 255, true) elseif getElementData(localPlayer,"language") == lang2 then outputChatBox("#bcff00[!] Nezapomen nas navštivit i na našem foře", getRootElement(), 255, 255, 255, true) end end setTimer(w1, 2000, 0)
  6. Hello, i need help with more languages in outputchatbox. For example, u can choose ur lang with command /setlanguage english or another language, then it will show outputchatbox lang with ur language. Something like this : outputChatBox("#123456[!] [DM]: #FFFFFF"..getPlayerName(killer).." #123456KILLED #FFFFFF"..getPlayerName(source).." #123456!", getRootElement(), 255, 0, 0, true) ----- English language outputChatBox("#123456[!] [DM]: #FFFFFF"..getPlayerName(killer).." #123456Zabil si #FFFFFF"..getPlayerName(source).." #123456!", getRootElement(), 255, 0, 0, true) ----- another language Thanks for answer.
  7. Hey, yea it is. https://community.multitheftauto.com/index.php?p=resources&s=details&id=5840
  8. Hello, I need your help, I want to make bindkey only for acl groups, but that's the problem, i dont know how to make server side. Can you help me please? GUIEditor = { button = {}, Nitro = {}, Yol = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0.83, 0.30, 0.16, 0.24, "Derby Skin Panel", true) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(0.13, 0.22, 0.77, 0.17, "Carbon Fiber", true, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(0.13, 0.46, 0.77, 0.17, "HellaFlush", true, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(0.13, 0.69, 0.77, 0.17, "Eklenicek", true, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.window[2] = guiCreateWindow(0.83, 0.55, 0.16, 0.20, "Derby Nitro Panel", true) guiWindowSetSizable(GUIEditor.window[2], false) GUIEditor.Nitro[1] = guiCreateButton(0.06, 0.19, 0.88, 0.27, "Nitro 1", true, GUIEditor.window[2]) guiSetProperty(GUIEditor.Nitro[1], "NormalTextColour", "FFAAAAAA") GUIEditor.Nitro[2] = guiCreateButton(0.07, 0.59, 0.87, 0.27, "Nitro 2", true, GUIEditor.window[2]) guiSetProperty(GUIEditor.Nitro[2], "NormalTextColour", "FFAAAAAA") GUIEditor.window[3] = guiCreateWindow(0.83, 0.05, 0.16, 0.24, "vgncarshade Texture Panel", true) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.Yol[1] = guiCreateButton(0.07, 0.18, 0.87, 0.25, "Ac", true, GUIEditor.window[3]) guiSetProperty(GUIEditor.Yol[1], "NormalTextColour", "FFAAAAAA") GUIEditor.Yol[2] = guiCreateButton(0.06, 0.54, 0.87, 0.25, "KAPAT", true, GUIEditor.window[3]) guiSetProperty(GUIEditor.Yol[2], "NormalTextColour", "FFAAAAAA") end ) function Gizle ( ) if ( guiGetVisible ( GUIEditor.window[1] ) == false ) then guiSetVisible ( GUIEditor.window[1], true ) guiSetVisible ( GUIEditor.window[2], true ) guiSetVisible ( GUIEditor.window[3], true ) showCursor(true) else guiSetVisible ( GUIEditor.window[1], false ) guiSetVisible ( GUIEditor.window[2], false ) guiSetVisible ( GUIEditor.window[3], false ) showCursor(false) end end bindKey ( "f5", "down", Gizle ) function kapat() guiSetVisible ( GUIEditor.window[1], false ) guiSetVisible ( GUIEditor.window[2], false ) guiSetVisible ( GUIEditor.window[3], false ) end addEventHandler("onClientResourceStart",root, function() kapat() end ) shader = dxCreateShader('shader.fx') shader2 = dxCreateShader('shader.fx') Python = dxCreateTexture('1.png') Python2 = dxCreateTexture('2.png') Python3 = dxCreateTexture('3.png') Python4 = dxCreateTexture('4.png') Python5 = dxCreateTexture('5.png') dxSetShaderValue(shader, 'gTexture', Python) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[1] then dxSetShaderValue(shader, 'gTexture', Python) engineApplyShaderToWorldTexture(shader, 'vehiclegrunge256') end end ) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[2] then dxSetShaderValue(shader, 'gTexture', Python2) engineApplyShaderToWorldTexture(shader, 'vehiclegrunge256') end end ) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[3] then dxSetShaderValue(shader, 'gTexture', Python3) engineApplyShaderToWorldTexture(shader, 'vehiclegrunge256') end end ) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.Nitro[1] then dxSetShaderValue(shader2, 'gTexture', Python4) engineApplyShaderToWorldTexture(shader2, 'smoke') end end ) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.Nitro[2] then dxSetShaderValue(shader2, 'gTexture', Python5) engineApplyShaderToWorldTexture(shader2, 'smoke') end end )
  9. Hello community, I need your help with script, I want to make this command only for VIP group but I don't know how, one thing I know is that I have to use: if isObjectInACLGroup Can you help me please? function addPaintjob(commandName,paintjobID) me = getLocalPlayer() if isPedInVehicle ( me ) then triggerServerEvent ( "addPJ", resourceRoot, tonumber(paintjobID), me ) end end addCommandHandler ("addpaintjob",addPaintjob) function addPaintjob2(paintjobID,player) if paintjobID == 1 then myTexture = dxCreateTexture( "paintjob1.png" ) elseif paintjobID == 2 then myTexture = dxCreateTexture( "paintjob2.png" ) elseif paintjobID == 3 then myTexture = dxCreateTexture( "paintjob3.png" ) elseif paintjobID == 4 then myTexture = dxCreateTexture( "paintjob4.png" ) elseif paintjobID == 5 then myTexture = dxCreateTexture( "paintjob5.png" ) elseif paintjobID == 6 then myTexture = dxCreateTexture( "paintjob6.jpg" ) elseif paintjobID == 7 then myTexture = dxCreateTexture( "paintjob7.jpg" ) elseif paintjobID == 8 then myTexture = dxCreateTexture( "paintjob8.jpg" ) elseif paintjobID == 9 then myTexture = dxCreateTexture( "paintjob9.jpg" ) else if player == getLocalPlayer() then outputChatBox ("There is no such paintjob ID!") return end end engineRemoveShaderFromWorldTexture ( shader_cars, "vehiclegrunge256", getPedOccupiedVehicle(player) ) shader_cars, tec = dxCreateShader ( "shader.fx" ) engineApplyShaderToWorldTexture ( shader_cars, "vehiclegrunge256", getPedOccupiedVehicle(player) ) dxSetShaderValue ( shader_cars, "TX0", myTexture ) end addEvent( "addPJ2", true ) addEventHandler( "addPJ2", getLocalPlayer(), addPaintjob2 )