Jump to content

WASSIm.

Members
  • Posts

    1,412
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by WASSIm.

  1. WASSIm.

    question

    how make if player give money show amount to dxdrawtext
  2. [url=https://wiki.multitheftauto.com/wiki/DxDrawGifImage]https://wiki.multitheftauto.com/wiki/DxDrawGifImage[/url] dxDrawGifImage
  3. post userpanel_client.lua
  4. maw script yalzmo player (isplayeriv) kif nrodo ya5damlo$
  5. WASSIm.

    helppp!!!

    i am sry but nothing
  6. wa ki na7abo player (isPlayeriv)
  7. WASSIm.

    helppp!!!

    some help plis ?
  8. try this Client: addEventHandler ( "onResourceStart", getRootElement(), CreateGui ) function CreateGui ( theElement, matchingDimension ) local x = 0.375 local y = 0.375 local width = 0.25 local height = 0.25 local twindow = guiCreateWindow ( x, y, width, height, "Trucker Job", true ) x = 0.400 y = 0.400 width = 0.05 height = 0.05 guiCreateLabel ( x, y, width, height, "In trucker job you need to deliver some stuff to the gas stations.", true, twindow ) x = 0.100 y = 0.150 width = 0.02 height = 0.02 local conb = guiCreateButton ( x, y, width, height, "Confirm", true, twindow ) x = 0.400 local canb = guiCreateButton ( x, y, width, height, "Cancel", true, twindow ) guiSetVisible( twindow, false ) end addEventHandler ( "onClientClick", conb, Confirm ) addEventHandler ( "onClientClick", canb, Cancel ) function Cancel ( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement ) guiSetVisible( twindow, false ) showCursor ( false ) end addEventHandler( "onClientColShapeHit", tc, check ) function check (hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(twindow) then guiSetVisible( twindow, true ) showCursor ( true ) end end end
  9. WASSIm.

    helppp!!!

    really i don't know lua if you can plis help me
  10. WASSIm.

    helppp!!!

    sry i dont see first BUG SERVER addEventHandler ("onVehicleEnter", root, function ( ) triggerClientEvent ( "onEnter", thePlayer ) end ) addEventHandler("onVehicleExit", root, function ( ) triggerClientEvent ( "onExit", thePlayer ) end ) function ( ) triggerClientEvent ( "onEnableFire", thePlayer ) end function ( ) triggerClientEvent ( "onDisableFire", thePlayer ) end function ( ) triggerClientEvent ( "onMove", thePlayer ) end CLIENT addEvent( "onEnter", true ) addEventHandler( "onEntre", getRootElement(), function(thePlayer, seat) theVehicle = source if seat == 0 and thePlayer == localPlayer and getElementModel(theVehicle) == 425 then x, y, z = getElementPosition ( theVehicle ) rx, ry, rz = getElementRotation ( theVehicle ) minigun1 = createWeapon ( "minigun", x, y, z ) minigun2 = createWeapon ( "minigun", x, y, z ) minigun3 = createWeapon ( "minigun", x, y, z ) minigun4 = createWeapon ("minigun", x, y, z ) setWeaponOwner ( minigun1, thePlayer) setWeaponOwner ( minigun2, thePlayer) setWeaponOwner ( minigun3, thePlayer) setWeaponOwner ( minigun4, thePlayer) setElementAlpha ( minigun1,0) setElementAlpha ( minigun2,0) setElementAlpha ( minigun3,0) setElementAlpha ( minigun4,0) attachElements ( minigun1, theVehicle, 2.15, 0.5, -1.2, 0, 0, 90 ) attachElements ( minigun2, theVehicle, -2.10, 0.5, -1.2, 0, 0, 90 ) attachElements ( minigun3, theVehicle, 2.57, 0.5, -1.1, 0, 0, 90 ) attachElements ( minigun4, theVehicle, -2.52, 0.5, -1.1, 0, 0, 90 ) toggleControl ( "vehicle_fire", false ) toggleControl ( "vehicle_secondary_fire", false ) bindKey ( "vehicle_fire", "down", enableFire ) bindKey ( "vehicle_fire", "up", disableFire ) end end ) addEvent( "onExit", true ) addEventHandler( "onEntre", getRootElement(), function(thePlayer, seat) local theVehicle = source if seat == 0 and thePlayer == localPlayer and getElementModel(theVehicle) == 425 then if minigun1 and minigun2 and minigun3 and minigun4 then destroyElement (minigun1) destroyElement (minigun2) destroyElement (minigun3) destroyElement (minigun4) toggleControl ( "vehicle_fire", false ) toggleControl ( "vehicle_secondary_fire", false ) unbindKey ( "vehicle_fire", "down", enableFire ) unbindKey ( "vehicle_fire", "up", disableFire ) end end end ) addEvent( "onEnableFire", true ) addEventHandler( "onEnableFire", getRootElement(), if minigun1 and minigun2 and minigun3 and minigun4 then setWeaponState ( minigun1, "firing" ) setWeaponState ( minigun2, "firing" ) setWeaponState ( minigun3, "firing" ) setWeaponState ( minigun4, "firing" ) addEventHandler ( "onClientRender", root, move) end end addEvent( "onDisableFire", true ) addEventHandler( "onDisableFire", getRootElement(), function disableFire() if minigun1 and minigun2 and minigun3 and minigun4 then setWeaponState ( minigun1, "ready" ) setWeaponState ( minigun2, "ready" ) setWeaponState ( minigun3, "ready" ) setWeaponState ( minigun4, "ready" ) removeEventHandler ( "onClientRender", root, move) end end addEvent( "onMove", true ) addEventHandler( "onMove", getRootElement(), function move () if minigun1 and minigun2 and minigun3 and minigun4 then MiniSound = playSound3D("test.wav", x, y, z,false) setSoundMaxDistance(MiniSound, 140) setSoundEffectEnabled(MiniSound,"gargle",true) attachElements ( MiniSound, theVehicle, 0, 0.5, -1.1, 0, 0, 90 ) end end
  11. WASSIm.

    Team Help

    Make no sense! if command (Criminal) and if i try criminal not working -___- some player dont know that
  12. WASSIm.

    Team Help

    change addCommandHandler ( "Criminal" , to addCommandHandler ( "criminal" ,
  13. download this: https://community.multitheftauto.com/index.php?p= ... ls&id=6324 and replace script in client.lua to this addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) local texture = dxCreateTexture ( "images/plateback3.jpg", "dxt5" ) local shader = dxCreateShader ( "texture.fx" ) dxSetShaderValue ( shader, "gTexture", texture ) engineApplyShaderToWorldTexture ( shader, "plateback3" ) end ) addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) local texture = dxCreateTexture ( "images/plateback2.jpg", "dxt5" ) local shader = dxCreateShader ( "texture.fx" ) dxSetShaderValue ( shader, "gTexture", texture ) engineApplyShaderToWorldTexture ( shader, "plateback2" ) end ) addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) local texture = dxCreateTexture ( "images/plateback1.jpg", "dxt5" ) local shader = dxCreateShader ( "texture.fx" ) dxSetShaderValue ( shader, "gTexture", texture ) engineApplyShaderToWorldTexture ( shader, "plateback1" ) end )
  14. WASSIm.

    helppp!!!

    Oh yes thx but now i can't kill player with minigun and player can't minigun addEventHandler("onClientVehicleEnter", root, function(thePlayer, seat) theVehicle = source if seat == 0 and thePlayer == localPlayer and getElementModel(theVehicle) == 425 then x, y, z = getElementPosition ( theVehicle ) rx, ry, rz = getElementRotation ( theVehicle ) minigun1 = createWeapon ( "minigun", x, y, z ) minigun2 = createWeapon ( "minigun", x, y, z ) minigun3 = createWeapon ( "minigun", x, y, z ) minigun4 = createWeapon ("minigun", x, y, z ) setWeaponOwner ( minigun1, thePlayer) setWeaponOwner ( minigun2, thePlayer) setWeaponOwner ( minigun3, thePlayer) setWeaponOwner ( minigun4, thePlayer) setElementAlpha ( minigun1,0) setElementAlpha ( minigun2,0) setElementAlpha ( minigun3,0) setElementAlpha ( minigun4,0) attachElements ( minigun1, theVehicle, 2.15, 0.5, -1.2, 0, 0, 90 ) attachElements ( minigun2, theVehicle, -2.10, 0.5, -1.2, 0, 0, 90 ) attachElements ( minigun3, theVehicle, 2.57, 0.5, -1.1, 0, 0, 90 ) attachElements ( minigun4, theVehicle, -2.52, 0.5, -1.1, 0, 0, 90 ) toggleControl ( "vehicle_fire", false ) toggleControl ( "vehicle_secondary_fire", false ) bindKey ( "vehicle_fire", "down", enableFire ) bindKey ( "vehicle_fire", "up", disableFire ) end end ) addEventHandler("onClientVehicleExit", root, function(thePlayer, seat) local theVehicle = source if seat == 0 and thePlayer == localPlayer and getElementModel(theVehicle) == 425 then if minigun1 and minigun2 and minigun3 and minigun4 then destroyElement (minigun1) destroyElement (minigun2) destroyElement (minigun3) destroyElement (minigun4) toggleControl ( "vehicle_fire", false ) toggleControl ( "vehicle_secondary_fire", false ) unbindKey ( "vehicle_fire", "down", enableFire ) unbindKey ( "vehicle_fire", "up", disableFire ) end end end ) function enableFire() if minigun1 and minigun2 and minigun3 and minigun4 then setWeaponState ( minigun1, "firing" ) setWeaponState ( minigun2, "firing" ) setWeaponState ( minigun3, "firing" ) setWeaponState ( minigun4, "firing" ) addEventHandler ( "onClientRender", root, move) end end function disableFire() if minigun1 and minigun2 and minigun3 and minigun4 then setWeaponState ( minigun1, "ready" ) setWeaponState ( minigun2, "ready" ) setWeaponState ( minigun3, "ready" ) setWeaponState ( minigun4, "ready" ) removeEventHandler ( "onClientRender", root, move) end end function move () if minigun1 and minigun2 and minigun3 and minigun4 then MiniSound = playSound3D("test.wav", x, y, z,false) setSoundMaxDistance(MiniSound, 140) setSoundEffectEnabled(MiniSound,"gargle",true) attachElements ( MiniSound, theVehicle, 0, 0.5, -1.1, 0, 0, 90 ) end end
  15. exmple hadhi kifa na3mlha ? addEventHandler( "onClientMouseEnter", root, function(thePlayer) if ( getElementType ( source ) == "gui-button" ) then --ki yabda Playeriv guiSetProperty( source, "HoverTextColour", "FE9A0000" ) --ki yabda isPlayertlad guiSetProperty( source, "HoverTextColour", "CD3AD100" ) --ki yabda isPlayertbogt guiSetProperty( source, "HoverTextColour", "80000000" ) end end end ) addEventHandler( "onClientMouseLeave", root, function() if ( getElementType ( source ) == "gui-button" ) then guiSetProperty( source, "HoverTextColour", "FFFFFFFF" ) end end )
  16. WASSIm.

    helppp!!!

    sound dont attach
  17. WASSIm.

    helppp!!!

    i get history file before bug. its working now but i have problem to sound addEventHandler("onClientVehicleEnter", root, function(thePlayer, seat) theVehicle = source if seat == 0 and thePlayer == localPlayer and getElementModel(theVehicle) == 425 then x, y, z = getElementPosition ( theVehicle ) rx, ry, rz = getElementRotation ( theVehicle ) minigun1 = createWeapon ( "minigun", x, y, z ) minigun2 = createWeapon ( "minigun", x, y, z ) minigun3 = createWeapon ( "minigun", x, y, z ) minigun4 = createWeapon ("minigun", x, y, z ) setElementAlpha ( minigun1,0) setElementAlpha ( minigun2,0) setElementAlpha ( minigun3,0) setElementAlpha ( minigun4,0) attachElements ( minigun1, theVehicle, 2.15, 0.5, -1.2, 0, 0, 90 ) attachElements ( minigun2, theVehicle, -2.10, 0.5, -1.2, 0, 0, 90 ) attachElements ( minigun3, theVehicle, 2.57, 0.5, -1.1, 0, 0, 90 ) attachElements ( minigun4, theVehicle, -2.52, 0.5, -1.1, 0, 0, 90 ) toggleControl ( "vehicle_fire", false ) toggleControl ( "vehicle_secondary_fire", false ) bindKey ( "vehicle_fire", "down", enableFire ) bindKey ( "vehicle_fire", "up", disableFire ) end end ) addEventHandler("onClientVehicleExit", root, function(thePlayer, seat) local theVehicle = source if seat == 0 and thePlayer == localPlayer and getElementModel(theVehicle) == 425 then if minigun1 and minigun2 and minigun3 and minigun4 then destroyElement (minigun1) destroyElement (minigun2) destroyElement (minigun3) destroyElement (minigun4) toggleControl ( "vehicle_fire", false ) toggleControl ( "vehicle_secondary_fire", false ) unbindKey ( "vehicle_fire", "down", enableFire ) unbindKey ( "vehicle_fire", "up", disableFire ) end end end ) function enableFire() if isTimer(MGtimer) and isTimer(MG2timer) and isTimer(MG3timer) and isTimer(MG4timer) and minigun1 and minigun2 and minigun3 and minigun4 then killTimer(MGtimer) killTimer(MG2timer) killTimer(MG3timer) killTimer(MG4timer) else MGtimer = setTimer(function() setWeaponState ( minigun1, "firing" ) end, 50, 1) MG2timer = setTimer(function() setWeaponState ( minigun2, "firing" ) end, 50, 1) MG3timer = setTimer(function() setWeaponState ( minigun3, "firing" ) end, 50, 1) MG4timer = setTimer(function() setWeaponState ( minigun4, "firing" ) end, 50, 1) MiniSound = playSound3D("test.wav", x, y, z,true) setSoundMaxDistance(MiniSound, 140) setSoundEffectEnabled(MiniSound,"gargle",true) end end function disableFire() if isTimer(MGtimer) and isTimer(MG2timer) and isTimer(MG3timer) and isTimer(MG4timer) and minigun1 and minigun2 and minigun3 and minigun4 then killTimer(MGtimer) killTimer(MG2timer) killTimer(MG3timer) killTimer(MG4timer) else MGtimer = setTimer(function() setWeaponState ( minigun1, "ready" ) end, 50, 1) MG2timer = setTimer(function() setWeaponState ( minigun2, "ready" ) end, 50, 1) MG3timer = setTimer(function() setWeaponState ( minigun3, "ready" ) end, 50, 1) MG4timer = setTimer(function() setWeaponState ( minigun4, "ready" ) end, 50, 1) stopSound(MiniSound) end end
  18. il mouchkla ena 7acti beha fi scripts client-said
  19. post (mapmanager_exports.lua)
  20. WASSIm.

    helppp!!!

    now all shoting but to all vehicle and bug sound
  21. WASSIm.

    helppp!!!

    thx. but now all minigun not shoting and minigun1 dont destroy if exit and working to all vehicles
×
×
  • Create New...