Jump to content

Wisin

Members
  • Posts

    126
  • Joined

  • Last visited

Everything posted by Wisin

  1. Wisin

    some problems

    Hi, im having some problems creating a skin shop, first problem is when a player hits the marker all see the selector, and second its i dont understand how to insert the take player money, if someone can help me here its client-side script. marker = createMarker ( 1936.3120117188, 2301.4567871094, 10.8203125, "cylinder", 3, 254, 1, 2, 99 ) createBlipAttachedTo ( marker, 12 ) function CreateSelectorWindow( hitPlayer, matchingDimension ) if ( isElementWithinMarker(getLocalPlayer(), marker) ) then wdwselector = guiCreateWindow(0.438,0.880,0.15,0.10,"Skin Shop",true) guiWindowSetMovable(wdwselector,false) btnLeft = guiCreateButton(0.0,0.4,0.200,0.350,"<-",true,wdwselector) btnRight = guiCreateButton(0.76,0.4,0.200,0.350,"->",true,wdwselector) btnSelect = guiCreateButton(0.30,0.4,0.400,0.350,"Select",true,wdwselector) guiSetVisible(wdwselector, true) end end function selectorenable () CreateSelectorWindow() addEventHandler("onClientGUIClick", btnLeft, clientSkinLeft, false) addEventHandler("onClientGUIClick", btnSelect, clientSkinSelect, false) addEventHandler("onClientGUIClick", btnRight, clientSkinRight, false) if (wdwselector ~= nil) then guiSetVisible(wdwselector, true) triggerServerEvent("FrontCamera", getLocalPlayer(),getLocalPlayer()) end showCursor(true) end addEventHandler ( "onClientMarkerHit", getRootElement(), selectorenable ) function clientSkinSelect(button) if button == "left" then guiSetVisible(wdwselector, false) showCursor(false) triggerServerEvent("SkinSelected", getLocalPlayer(),getLocalPlayer()) end end function clientSkinRight(button) if button == "left" then triggerServerEvent("SkinRight", getLocalPlayer(),getLocalPlayer()) end end function clientSkinLeft(button) if button == "left" then triggerServerEvent("SkinLeft", getLocalPlayer(),getLocalPlayer()) end end
  2. @nich this script has a bug when i type command it shows for all not only for client i ve tryed to fix it but i failed i will keep trying.
  3. addEvent("fixVehicleRequest", true) addEventHandler("fixVehicleRequest", getRootElement(), function() if isPedInVehicle(source) then local money = getPlayerMoney (source) if (money > 666) then fixVehicle(getPedOccupiedVehicle(source)) outputChatBox("Vehicle Successfully Fixed", source, 255, 255, 0, true) else outputChatBox("You are not in a vehicle", source, 255, 0, 0, true) end end ) i did that its that right? i get a error at debugscript player-menu-s.lua:13: unexpected symbol near ")"
  4. yes its a gui window with buttons etc, so i need when click the repair will repair the player vehicle. Edit: wow its working thanks for all guys . i got a question how i can make when hit that button get the player money if he has a special amount if someone can tell me.
  5. well i think i ve did that but dint taked a good look i will check it again, and sorry for the lua tags i just forgot to put them
  6. hi community, im making a menu for the player and i need to get working a "repair" button but the i dont understand how to, here is my server-side code. if someone can tell me how to use will be very nice function fix(button,state) if button == "left" and state == "down" then local clientPlayer = getLocalPlayer() if isPlayerInVehicle(clientPlayer) == true then local Vehicle = getPlayerOccupiedVehicle ( clientPlayer) fixVehicle(theVehicle) outputChatBox("Vehicle Successfully Fixed",255,255,0,true) else outputChatBox("You are not in a vehicle",255,0,0,true) end end end
  7. u only must edit the meta.xml from the resources and delete those lines like this one Png/SENTINEL.png and do that again with the problem on zombies if im not wrong its only that
  8. realy i dint understand what u mean cuz im not english, im just busy with my own server and real life things work,study,etc etc.
  9. realy no idea of what u must edit sorry , i was testing ways to get it working but no luck, by the way i will take a look again soon, i dont have much time making own things
  10. i dont get it working i tested it yesterday all time and cant get it working. any help
  11. edit: sorry i dint readed well, by the way i fixed your code i tested and its working here is it -- Greenzone Pirate Ship x, y, size = 1844.5594482422, 1375.3376464844, 120 local greenzone = createColRectangle ( 1844.5594482422, 1375.3376464844, 284, 312.22 ) local greenzonemaparea = createRadarArea (1844.5594482422, 1375.3376464844, 284, 312.22, 0, 255, 0, 120) function greenzoneEnter ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end outputChatBox ( "* You Entered The Greenzone!", thePlayer, 177, 252, 3 ) toggleControl ( thePlayer, "fire", false ) toggleControl ( thePlayer, "next_weapon", false ) toggleControl ( thePlayer, "previous_weapon", false ) setPedWeaponSlot ( thePlayer, 0 ) toggleControl ( thePlayer, "aim_weapon", false ) toggleControl ( thePlayer, "vehicle_fire", false ) toggleControl ( thePlayer, "vehicle_secondary_fire", false ) end addEventHandler ( "onColShapeHit", greenzone, greenzoneEnter ) function greenzoneExit ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end outputChatBox ( "* You Left The Greenzone!", thePlayer, 177, 252, 3 ) toggleControl ( thePlayer, "fire", true ) toggleControl ( thePlayer, "next_weapon", true ) toggleControl ( thePlayer, "previous_weapon", true ) toggleControl ( thePlayer, "aim_weapon", true ) toggleControl ( thePlayer, "vehicle_fire", true ) toggleControl ( thePlayer, "vehicle_secondary_fire", true ) end addEventHandler ( "onColShapeLeave", greenzone, greenzoneExit ) also use setPedWeaponSlot like i put there
  12. dude just edit that line he said, i tryed and i put 100000 raidus and i see all my banks thanks btw i dint know also.
  13. no i dint, how should i use it and in what part of code?
  14. cmon u think we are idiots i created all the needed gui things and wont work dude somthing its wrong there.
  15. Hi guys, i see someone its doing big problems here that part its a part of a game mode so if u dont have the other parts the game mode wont work i already tested this client-side and server-side alone and wont work, i also tested to make that on the game mode and it dont gives any warning or error but it wont work the gui dont shows.
  16. well im gonna show u how must work this, client-side if campos =="Tunestars" then guiSetText(weapon1,"Weapons:") guiSetText(weapon2,"Brass Knuckles") guiSetText(weapon3,"Knife") guiSetText(weapon4,"Deagle") guiSetText(weapon5,"Uzi") guiSetText(weapon6,"M4") guiSetText(weapon7,"Spraycan") guiSetText(weapon8,"Stachel Charges") guiSetText(weapon9,"") guiSetText(info,"") setTimer ( guiStaticImageLoadImage, 500, 1, picture, "skins/tune.png" ) theta = rad(50) distance = 20 x,y,z = 2201.7375488281, 1392.9350585938, 10.8203125 end server-side if teamSelection == "Tunestars" then setPlayerTeam ( source, teamTune ) local x,y,z x = 2201.7375488281 y = 1392.9350585938 z = 10.8203125 spawnPlayer ( source, x,y,z ) fadeCamera(source, true) giveWeapon ( source, 1, 1 ) giveWeapon ( source, 4, 1 ) giveWeapon ( source, 24, 500 ) giveWeapon ( source, 28, 500 ) giveWeapon ( source, 31, 500 ) giveWeapon ( source, 41, 1000 ) setElementHealth ( source, 100 ) setPlayerNametagColor ( source, 0,100,255 ) setPedSkin ( source, math.random(46,48) ) playSoundFrontEnd ( source, 45 ) setTime ( hour, mins+1 ) end this is on scoreboard teamTune = createTeam ( "Tunestars", 255,255,15 ) local teams = { "Tunestars", if im right this must be.
  17. i have tested it and only creates the pickup but the money dont gets droped so somthings its wrong
  18. i have tested it and only creates the pickup but the money dont gets droped so somthings its wrong
  19. Wisin

    create image

    hi there, i need to show a image and hide on my gridlist with teams like when click team will show a image on the gui window then click other team will hide the old one and show the currently team image, hope someone understand what i mean. sorry for bad english Edit: Solved
  20. Wisin

    create image

    hi there, i need to show a image and hide on my gridlist with teams like when click team will show a image on the gui window then click other team will hide the old one and show the currently team image, hope someone understand what i mean. sorry for bad english Edit: Solved
  21. Wisin

    [help]logingui

    i have edited that this is the new onClientGUIClick addEventHandler("onClientGUIClick",register,clientNewUserHandler,false
  22. Wisin

    [help]logingui

    i dont need help with the gui, i just wanted to know what was my problem on that script some of errors i have fixed already now i can login but cant register
  23. Wisin

    [help]logingui

    any help please??
  24. Wisin

    [help]logingui

    the script has 2 tabs one for login and other for register and the buttons etc but it dont works for anything
  25. Wisin

    [help]logingui

    it dont works like i want i want to know whats the problem on it
×
×
  • Create New...