Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Why u dont try to learn some and script it?
  2. Castillo

    Hide radar

    Hmm, maybe freeroam has a own blips code, i dont know how to disable then.
  3. Castillo

    Hide radar

    To hide player blips just stop resource "playerblips" and that should work
  4. Castillo

    help :)

    You cant remplace CJ model, and skins only can remplace the TXD cause DFF dont works.
  5. I think is not allowed to speak in other languages, if im wrong im sorry.
  6. for me works like must work, i dont understand what u mean.
  7. local screenWidth, screenHeight = guiGetScreenSize() browser = guiCreateWindow(50, 50, screenWidth-100, screenHeight-100, "Please Log In", false) guiSetVisible(browser,false) guiWindowSetMovable(browser, true) guiWindowSetSizable(browser, true) go = guiCreateButton(0.7, 0.1, 0.1, 0.05, "Go!", true) quit = guiCreateButton(0.9, 0.05, 0.03, 0.03, "x", true) function visible() guiSetVisible(browser, true) showCursor(true) guiSetInputEnabled(true) end addCommandHandler("internet", visible) function quitInternet (button, state) if button == "left" and state == "up" then guiSetInputEnabled(false) guiSetVisible(browser, false) showCursor(false) end end addEventHandler("onClientGUIClick", quit, quitInternet) I edited your code a bit
  8. You must put the event handler after the funtion, like this function Internet() local screenWidth, screenHeight = guiGetScreenSize() browser = guiCreateWindow(50, 50, screenWidth-100, screenHeight-100, "Please Log In", false) guiSetVisible(browser, true) showCursor(true) guiSetInputEnabled(true) guiWindowSetMovable(browser, true) guiWindowSetSizable(browser, true) go = guiCreateButton(0.7, 0.1, 0.1, 0.05, "Go!", true) quit = guiCreateButton(0.9, 0.05, 0.03, 0.03, "x", true) end addCommandHandler("internet", Internet) function quitInternet(button, state) if button == "left" and state == "up" then guiSetInputEnabled(false) guiSetVisible(browser, false) showCursor(false) end end addEventHandler("onClientGUIClick", quit, quitInternet) oh and remember to use lua tags
  9. Well, this happend to me, some cars needs remplace of gta data files ( that i dont know if u can into mta )
  10. Fixed that. Uploaded a new version. Cannot reproduce this. Can you explain by steps how did you get this ? I wanted to test if was only for admins, and i joined then /hpanel and created the house (without being loged in) and then i click destroy button and worked, thats all.
  11. Whats the problem with it??
  12. actually he isnt COOKIE2, he is "wiebe" and this script isnt same as mine as you can see, is taked from j-rpg.
  13. Cool, i go check it out Edit: hey, when i press "I" it shows houses and some time dosnt, and gives this error core/core_client.lua:685: attemp to index a boolean value core/core_client.lua:696: attempt to index a boolean value Edit2: im not loged in as admin and i can enter in house without buy also can destroy it wtf?
  14. Hey, the creator works all fine, but when i click "enter this house" i put a password of more than 5 letters and then it says " You can not buy more than 1 house at the same time!" any help? a bug?
  15. Castillo

    Teams

    really, i forgot what i have changed
  16. I hope this resource will be released soon, cause what i saw is really nice.
  17. this is a kind of example for you localPlayer = getLocalPlayer() function addColumns() exports.scoreboard:scoreboardAddColumn("Points") setElementData(localPlayer,"Points",0) end addEventHandler("onClientResourceStart",getResourceRootElement(),addColumns) function addPoints() setElementData(getLocalPlayer(),"Points",tonumber(getElementData(getLocalPlayer(),"Points"))+100) end addCommandHandler("add",addPoints) function takePoints() setElementData(getLocalPlayer(),"Points",tonumber(getElementData(getLocalPlayer(),"Points"))-10) end addEventHandler ( "onClientPlayerWasted", getLocalPlayer(), takePoints ) this will give u 100 points if u do /add and will take 10 points if u die.
  18. I love it i played it with another guy and was really cool, Good Job!
  19. im testing it , seems very very nice, and with lot of features
  20. Castillo

    Teams

    function createTeamsOnStart () teamAdmins = createTeam ( "Admins", 255, 100, 0 ) teamMembers = createTeam ( "Members", 0, 0, 255 ) teamGuests = createTeam ( "Guests", 255, 255, 255 ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), createTeamsOnStart ) addEventHandler( "onPlayerJoin", root, function() setPlayerTeam ( source, teamGuests ) end ) addEventHandler("onPlayerLogin", root, function() if isObjectInACLGroup( 'user.Albinix', aclGetGroup( 'Admin' ) ) then setPlayerTeam ( source, teamAdmins ) else setPlayerTeam ( source, teamMembers ) end end) this one works
  21. I guess u want the moon too, learn to script, then if u fail post your code and we will try to help u.
  22. Hmmm well i fixed that, but when we hit marker the car dont gets destroyed but u get the money, here is new code marky = createMarker ( -2642.5, 1375, 6, "cylinder", 1.5, 255, 255, 0, 30 ) function mission ( hitPlayer ) if (source == marky) then my = createMarker ( -1647, 1219, 6, "cylinder" , 4, 255, 255, 0, 30 ) setElementVisibleTo ( my, hitPlayer , true ) local MissionVehicle = createVehicle ( 401, -2639, 1371, 8 ) warpPedIntoVehicle ( hitPlayer , MissionVehicle ) blip = createBlip ( -1647, 1219, 4, 52, 2, 255, 0, 0, 255, 0, 99999.0, getRootElement() ) setElementVisibleTo ( blip, hitPlayer, true ) addEventHandler ("onMarkerHit", my, Reward) end end function Reward( hitPlayer ) if (source == my) then setTimer ( destroyElement, 2000, 1, blip ) setTimer ( destroyElement, 2000, 1, my ) setTimer ( destroyElement, 2000, 1, MissionVehicle ) givePlayerMoney(hitPlayer, 100) end end addEventHandler ("onMarkerHit" , getRootElement(), mission) Good luck with it
  23. What i saw in video was really really cool, i hope some day will be relesed
  24. Castillo

    car slots

    Okay, the problem is, i want to buy a car and detect what slot is selected, as you see im using radio buttons to select slot, but when i click buy only buys for slot 1. i hope u understand a bit more now
  25. Castillo

    car slots

    hey someone can help me????????
×
×
  • Create New...