-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
Why u dont try to learn some and script it?
-
Hmm, maybe freeroam has a own blips code, i dont know how to disable then.
-
To hide player blips just stop resource "playerblips" and that should work
-
I think is not allowed to speak in other languages, if im wrong im sorry.
-
for me works like must work, i dont understand what u mean.
-
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
-
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
-
Well, this happend to me, some cars needs remplace of gta data files ( that i dont know if u can into mta )
-
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.
-
Whats the problem with it??
-
actually he isnt COOKIE2, he is "wiebe" and this script isnt same as mine as you can see, is taked from j-rpg.
-
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?
-
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?
-
I hope this resource will be released soon, cause what i saw is really nice.
-
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.
-
I love it i played it with another guy and was really cool, Good Job!
-
im testing it , seems very very nice, and with lot of features
-
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
-
I guess u want the moon too, learn to script, then if u fail post your code and we will try to help u.
-
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
-
What i saw in video was really really cool, i hope some day will be relesed
