Jump to content

nasserdfdd

Members
  • Posts

    191
  • Joined

  • Last visited

Everything posted by nasserdfdd

  1. sorry, but i don't think this is possible
  2. try this:) function setDeathSpawn() guiSetVisible(SPAWN.window[1],true) showCursor(true) end addEventHandler("onClientPlayerWasted",getLocalPlayer(),setDeathSpawn)
  3. for example i mean when i press p dont open p panel and or anyother thing bind with p
  4. how to make o or l button to cancel event pls help guys
  5. hi all so why it is not working addEventHandler("onPlayerJoin",root, function( ) if getPlayerTeam = "" then setPlayerTeam (client, "Unemployed") setElementData(client, "Role", "Unemployed") end
  6. usful can we put png and other things
  7. i cant under stand u post full code with name upper of so i understand u
  8. vortexservers.com they are amazing but it problem is that they dont have live support
  9. u mean txd1 = engineLoadTXD("YourTxd.TXD") ---- Edit YourTxd engineImportTXD(txd1, ReplaceTxd) ---
  10. i did not get u mean mod object of map editor if then here u go client.lua txd = engineLoadTXD("1282.txd")--name of txd engineImportTXD(txd, 1228)--txd id dff = engineLoadDFF("1228.dff", 1228)--name of dff and id engineReplaceModel(dff, 1228)--dff id col = engineLoadCOL( "1228.col" )--not important but if u mod objects u may need to mod col engineReplaceCOL( col, 1228 ) meta type="nasser" name="txd dff col replace" author="nasserdfdd" description="" version="1" /> "1228.txd" /> "1228.dff" /> "1228.col" />
  11. any modereator lock this topic as u see he is saying about leaked scripts any moderator lock this topic
  12. try this i did not test i just made it addEventHandler( "onPlayerWasted", getRootElement( ), function() destroyElement(getPedOccupiedVehicle(source)) end ) or try function onWasted() destroyElement(getPedOccupiedVehicle(source)) end -- add the event handler addEventHandler("onClientPedWasted", getRootElement(), onWasted)
  13. i dont think it is possible because u will need the model fx if u want to for skin and if u want for vehicle txd and dff
  14. hi all so i want if one of team criminal kill another criminal does not get wanted level any help thanks
  15. i finished the script no error and iam in element admin but nothing happeinging when i press f5 script client GUIEditor = { button = {}, Nitro = {}, Yol = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0.83, 0.30, 0.16, 0.24, "Derby Skin Panel v1", 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 not getElementData(localPlayer, "admin") then return end --If the player's admin data isn't set then cancle the function 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 ) addEvent("showDSP",true) addEventHandler("showDSP", lcalPlayer, 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 ) i tried the other way not working client GUIEditor = { button = {}, Nitro = {}, Yol = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0.83, 0.30, 0.16, 0.24, "Derby Skin Panel v1", 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 ) addEvent("showDSP",true) addEventHandler("showDSP", lcalPlayer, 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 ) function verifY( thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then -- Does he have access to Admin functions? triggerClientEvent(root,"showDSP", thePlayer) end end addCommandHandler("derbypanel", verifY) edit : found error in the second way client.lua:52: @addeventhandler [expected element at argument 2 got nil
  16. i downloaded this script i want only admin be able to open it GUIEditor = { button = {}, Nitro = {}, Yol = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0.83, 0.30, 0.16, 0.24, "Derby Skin Panel v1", 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 )
  17. does not have error and the shader does not change
  18. hi all so i have this script toe change veh mod for admin buti get error server function permission (source) local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then end end addEvent("check",true) addEventHandler("check",root,permission) client function enterveh () triggerServerEvent("check",localPlayer) txd = engineLoadTXD("infernus.txd", 411 ) engineImportTXD(txd, 411) dff = engineLoadDFF("infernus.dff", 411 ) engineReplaceModel(dff, 411) end addEventHandler ( "onClientPlayerVehicleEnter", getRootElement(), enterveh ) it give me Error:test\server.lus:3: attemept to concatentate local 'accname'(a boolean value)
  19. it give me Error:test\server.lus:3: attemept to concatentate local 'accname'(a boolean value)
×
×
  • Create New...