Jump to content

FuriouZ

Members
  • Posts

    459
  • Joined

  • Last visited

Everything posted by FuriouZ

  1. FuriouZ

    How to do

    Hello, i have a question How to do if i press f11 then blip doesn't show or how to hide blip from f11 map i mean that in minimap (gps) i can see blip but in f11 i cant
  2. No.You are totally wrong.Well, yeah i am not so good in scripting like you maybe .. but i am still learning it ,so if yo don't want to help me, you don't have to, but don't come to say me things what you don't know about me. Little off-topic, but don't post here anymore. Thanks
  3. I tought this is place, where i can get help.. but okay then.
  4. Still don't get it right .. line 6: Bad 'player' pointer @ 'getPlayerTeam'(1) local g_Root_Element = getRootElement ( ) ------------------- --Get_Player_Team-- ------------------- function isDeathmatchTeam (source, team, thePlayer) local team = getPlayerTeam ( source ) local DeathmatchTeam = getTeamFromName("Deathmatch Arena") if ( team ) then if ( team == DeathmatchTeam ) then showPlayerHudComponent ( thePlayer, "ammo", true ) showPlayerHudComponent ( thePlayer, "weapon", true ) else showPlayerHudComponent ( thePlayer, "ammo", false ) showPlayerHudComponent ( thePlayer, "weapon", false ) end end end addEventHandler ( "onResourceStart", g_Root_Element, isDeathmatchTeam ) ---------------------- --Deathmatch_Weapons-- ---------------------- MP5 = createPickup ( 360.56104, -2072.92627, 10.69531, 2, 29, 100 ) function giveMP5 () giveWeapon ( source, 29, 300 ) end addEventHandler("onPickupHit", root,MP5, giveMP5) function setRightDimension () setElementDimension ( MP5, 3 ) end addEventHandler ( "onResourceStart", g_Root_Element, setRightDimension )
  5. This is server side: Debug says bad argument @getPlayerTeam (line 7) dimension debug says bad argument @addEventHandler[expected function at argument 3,got pickup] --Line 28 local g_Root_Element = getRootElement ( ) ------------------- --Get_Player_Team-- ------------------- function isDeathmatchTeam () local team = getPlayerTeam(localPlayer) --Line 7 local DeathmatchTeam = getTeamFromName("Deathmatch Arena") if ( team ) then if ( team == DeathmatchTeam ) then showPlayerHudComponent ( source, "ammo", true ) showPlayerHudComponent ( source, "weapon", true ) else showPlayerHudComponent ( source, "ammo", false ) showPlayerHudComponent ( source, "weapon", false ) end end end addEventHandler ( "onResourceStart", g_Root_Element, isDeathmatchTeam ) ---------------------- --Deathmatch_Weapons-- ---------------------- MP5 = createPickup ( 360.56104, -2072.92627, 10.69531, 2, 29, 100 ) function giveMP5 () giveWeapon ( source, 29, 300 ) end addEventHandler("onClientPickupHit", root,MP5, giveMP5) --Line 28 function setRightDimension () setElementDimension ( MP5, 3 ) end addEventHandler ( "onResourceStart", g_Root_Element, setRightDimension )
  6. Both doesn't work : local g_Root_Element = getRootElement ( ) ------------------- --Get_Player_Team-- ------------------- function isDeathmatchTeam () local team = getPlayerTeam(localPlayer) local DeathmatchTeam = getTeamFromName("Deathmatch Arena") if team and DeathmatchTeam then showPlayerHudComponent ( source, "ammo", true ) showPlayerHudComponent ( source, "weapon", true ) else showPlayerHudComponent ( source, "ammo", false ) showPlayerHudComponent ( source, "weapon", false ) end end addEventHandler ( "onResourceStart", g_Root_Element, isDeathmatchTeam ) ---------------------- --Deathmatch_Weapons-- ---------------------- MP5 = createPickup ( 360.56104, -2072.92627, 10.69531, 2, 29, 100 ) function giveMP5 () giveWeapon ( source, 29, 300 ) end addEventHandler("onClientPickupHit", root,MP5, giveMP5) --weapon is still in dimension 0 function setRightDimension () setElementDimension ( MP5, 3 ) end addEventHandler ( "onResourceStart", g_Root_Element, setRightDimension )
  7. How to to if player is not in deathmatch team, then showPlayerHudComponent ( source, "ammo", true ) showPlayerHudComponent ( source, "weapon", true ) are false ? and another question, how to set pickup dimension ? server: local rRoot = resourceRoot MP5 = createPickup ( 360.56104, -2072.92627, 10.69531, 2, 29, 100 ) -- create myPickup at resource start function giveMP5 () giveWeapon ( source, 29, 200 ) -- Gives the M4 weapon with 200 ammo end addEventHandler("onClientPickupHit", root,MP5, giveMP5) thanks
  8. FuriouZ

    Problem

    GUIEditor.staticimage[1] = guiCreateStaticImage(0.00, 0.00, 1.00, 1.00, "img/backround.png", true) guiSetEnabled (GUIEditor.staticimage[1],false) showCursor(true) -- -- -- GUIEditor.button[9] = guiCreateButton(0.42, 0.94, 0.16, 0.06, "Enter", true, GUIEditor.staticimage[1]) guiSetEnabled (GUIEditor.button[9],true)
  9. FuriouZ

    Problem

    Small line makes big problem .. Thanks ! [EDIT]: But now there's another problem, buttons what are created on this image what i disabled are too disabled ,how to fix it ? I tried guiSetEnabled (GUIEditor.button[9],true) But it didn't worked
  10. FuriouZ

    Problem

    Hello I have problem with button and image... I have created button on image, but if i press to the image,then i can't press to the button,i see it but nothing happens then,until i restart resource
  11. Thanks, but how to do that if i remove Rectangle event handler then all labels etc disapears too ? client: function drawInformationGui() dxDrawRectangle(0, 0, 218, 720, tocolor(0, 0, 0, 250), false) end addEventHandler("onClientRender", root,drawInformationGui) addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor_Label[2] = guiCreateLabel(-0.00, 0.00, 0.17, 0.12, "Information", true) guiSetFont(GUIEditor_Label[2], "sa-header") guiLabelSetColor(GUIEditor_Label[2], 198, 30, 28) guiLabelSetHorizontalAlign(GUIEditor_Label[2], "center", false) guiLabelSetVerticalAlign(GUIEditor_Label[2], "center") GUIEditor_Label[3] = guiCreateLabel(0.00, 0.12, 0.16, 0.05, "Player name:", true) guiSetFont(GUIEditor_Label[3], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor_Label[3], "center", false) guiLabelSetVerticalAlign(GUIEditor_Label[3], "center") GUIEditor_Label[4] = guiCreateLabel(0.005, 0.16, 0.16, 0.05, "Money:", true) guiSetFont(GUIEditor_Label[4], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor_Label[4], "left", false) guiLabelSetVerticalAlign(GUIEditor_Label[4], "center") end )
  12. Hello I have a question, how to hide Rectangle ? I triyed with guiSetVisible ,but debug says Bad Argument @guiSetVisible client: addEventHandler("onClientRender", root, function() info_gui = dxDrawRectangle(0, 0, 218, 720, tocolor(0, 0, 0, 250), false) guiSetVisible(info_gui,false) end ) Thanks
  13. Cool,but you should add glass to the Ottos auto's house
  14. Fixed it finally ! Thanks to all who tryed to help me [EDIT]: I still have one question, if i click to the backround image (GUIEditor.staticimage[1]), then i can't use buttons anymore, what are created on it How to fix it ?
  15. It can't be "source" .. It happens ..
  16. Doesn't work, says line 13 & 17 have unexpected symbol near "," function drawWorldGui() GUIEditor.staticimage[1] = guiCreateStaticImage(0.00, 0.00, 1.00, 1.00, "img/backround.png", true) showCursor(true) --'Normal state' GUIEditor.staticimage[2] = guiCreateStaticImage(0.08, 0.30, 0.25, 0.35, "img/thumbs/FreeroamLeave.png", true, GUIEditor.staticimage[1]) --(picture 1 & 3) addEventHandler( "onClientMouseEnter", GUIEditor.staticimage[2], FreeroamEnter) addEventHandler( "onClientMouseLeave", GUIEditor.staticimage[2], FreeroamLeave) end addEventHandler("onClientResourceStart", resourceRoot,drawWorldGui) function FreeroamEnter () guiStaticImageLoadImage( , "img/thumbs/FreeroamEnter.png" ) --'Hover state' end function FreeroamLeave () guiStaticImageLoadImage( , "img/thumbs/FreeroamLeave.png" ) --'Normal state' end
  17. Hey I have one very stupit problem.. i'm getting so sick to fix it, i tryed like 3hours to fix price of this shit, but still nothing .. --PICTURES function drawWorldGui() GUIEditor.staticimage[1] = guiCreateStaticImage(0.00, 0.00, 1.00, 1.00, "img/backround.png", true) showCursor(true) --'FREEROAM' GUIEditor.staticimage[2] = guiCreateStaticImage(0.08, 0.30, 0.25, 0.35, "img/thumbs/FreeroamEnter.png", true, GUIEditor.staticimage[1]) --(picture 2) --'Selected' GUIEditor.staticimage[3] = guiCreateStaticImage(0.08, 0.30, 0.25, 0.35, "img/thumbs/FreeroamLeave.png", true, GUIEditor.staticimage[1]) --(picture 1 & 3) guiSetVisible(GUIEditor.staticimage[3], false) GUIEditor.button[1] = guiCreateButton(0.105, 0.335, 0.20, 0.28, "", true, GUIEditor.staticimage[1]) guiSetProperty(GUIEditor.button[1], "AlwaysOnTop", "True") guiSetAlpha(GUIEditor.button[1], 0.5) addEventHandler( "onClientMouseEnter",GUIEditor.button[1], FreeroamEnter) addEventHandler("onClientMouseLeave",GUIEditor.button[1],FreeroamLeave) end addEventHandler("onClientResourceStart", resourceRoot,drawWorldGui) function FreeroamEnter () guiSetVisible(GUIEditor.staticimage[3], true); guiSetVisible(GUIEditor.staticimage[2], false); end function FreeroamLeave () guiSetVisible(GUIEditor.staticimage[2], true); guiSetVisible(GUIEditor.staticimage[3], false); end If my cursor is on button, then should appear image with freeroam tag (pic 2) , but if i go to the button, then image dissapears.. fucking shit .. hope you understand
  18. Is possible, that future versions of MTA have a perfect traffic.. i mean that like in GTA IV MP maybe... that i can steal cars from traffic etc... in online i mean ??
  19. FuriouZ

    How to do ?

    So, i can't unbind MTA default binds ?
  20. FuriouZ

    How to do ?

    I still don't get it what is Bad Argument .. Debug says "bad argument @ unbindkey Server: local root = getRootElement() function unBindKeys ( ) unbindKey ( thePlayer, "arrow_up", "both") unbindKey ( thePlayer, "arrow_down", "both") unbindKey ( thePlayer, "arrow_left", "both") unbindKey ( thePlayer, "arrow_right", "both") end addEventHandler ( "onPlayerSpawn", root, unBindKeys ) addEventHandler ( "onPlayerJoin", root, unBindKeys ) addEventHandler ( "onPlayerLogin", root, unBindKeys )
  21. FuriouZ

    How to do ?

    Thanks glowdemon1 ! But i have another question too, Is possible to unbind arrow up,down,left and right onPlayerJoin ?
  22. FuriouZ

    How to do ?

    Hey! I have a question, how to bind key like scoreboard ? I mean how to do that if i hold eg: x down,then it shows gui and if i release button then it hides a gui ? I hope that you understang, what i mean and thanks
  23. Stop image is made badly, but full resource looks quite cool
  24. Wait, do you plan to do Vs map in GTA SA? No lol, i know that GTA V owns GTA Sa ,but i just tryed to do it similar looking of GTA V
×
×
  • Create New...