-
Posts
4,961 -
Joined
-
Last visited
Everything posted by Jaysds1
-
A: ya Q: Cya tomorrow?
-
here: GUIEditor_Button = {} GUIEditor_Edit = {} rotation = 0 addEvent("onVisibleButtons", true) addEventHandler("onVisibleButtons", getLocalPlayer(), function() GUIEditor_Button[1] = guiCreateButton(0.3688,0.84,0.0625,0.055,"<",true) GUIEditor_Button[2] = guiCreateButton(0.5013,0.84,0.0625,0.055,">",true) GUIEditor_Button[3] = guiCreateButton(0.4013,0.9067,0.1287,0.065,"Empezar a Jugar",true) GUIEditor_Edit[1] = guiCreateEdit(0.4412,0.8367,0.05,0.0567,"0",true) guiEditSetReadOnly(GUIEditor_Edit[1],true) lsT() showCursor(true) bindKey("space", "down", theR) ped = createPed( 0, 756.03051757813, -1239.4184570313, 13.552116394043 ) setElementData(ped,"City","LS") end) numero = 0 addEventHandler("onClientGUIClick", root,function(button,state) if source == GUIEditor_Button[3] then local elements ={GUIEditor_Button[1],GUIEditor_Button[2],GUIEditor_Button[3],GUIEditor_Edit[1]} for i,v in ipairs(elements)do destroyElement(v) end showCursor(false) setCameraTarget( localPlayer ) destroyElement(ped) unbindKey("space","down",theR) local renders = {lsT,lvT,sfT} for k,b in ipairs(elements)do removeEventHandler("onClientRender",root,b) end setPedSkin(localPlayer,numero) setElementFrozen(localPlayer,false) elseif source == GUIEditor_Button[1] then if (button == "left" and state == "up") then if(numero == 0) then numero = 288 setElementModel(ped,numero) end numero = numero - 1 setElementModel(ped,numero) end guiSetText(GUIEditor_Edit[1], " "..getElementModel(ped).."") elseif source == GUIEditor_Button[2] then if (button == "left" and state == "up") then if (numero == 289) then numero = 0 setElementModel(ped,numero) end numero = numero + 1 setElementModel(ped,numero) end guiSetText(GUIEditor_Edit[1], " "..getElementModel(ped).."") end end,true) addEventHandler("onClientRender", root,function( ) if isElement ( ped ) then rotation = rotation + 1 if ( rotation > 359 ) then rotation = 0 end setPedRotation ( ped, rotation ) end end) function lsT() addEventHandler("onClientRender", root, lsT) dxDrawText("Los Santos",433.0,539.0,641.0,585.0,tocolor(255,255,255,255),3.0,"default","left","top",false,false,true) end function bLV() if source == GUIEditor_Button[3] then setElementPosition( localPlayer, 2137.7775878906, 1480.8577880859, 10.8203125 ) end end function bSF() if source == GUIEditor_Button[3] then setElementPosition( localPlayer, -1695.2707519531, 950.0751953125, 24.890625 ) end end function bLS() if source == GUIEditor_Button[3] then setElementPosition( localPlayer, 731.21276855469, -1276.6033935547, 17.6484375 ) end end function theR() if(getElementData(ped,"City")=="LS")then removeEventHandler("onClientRender", root, lsT) setTimer(lvT,1000,1) triggerServerEvent("onCameraLV", getLocalPlayer()) setElementData(ped,"City","LV") setElementPosition(ped, 2323.7517089844, 1283.2214355469, 97.592704772949 ) addEventHandler("onClientGUIClick", root, bLV) elseif(getElementData(ped,"City")=="LV")then removeEventHandler("onClientRender",root,lvT) setTimer(sfT,1000,1) triggerServerEvent("onCameraSF", getLocalPlayer()) setElementData(ped,"City","SF") setElementPosition(ped,-1480.8948974609, 920.17132568359, 71.350372314453) addEventHandler("onClientGUIClick", root, bSF) elseif(getElementData(ped,"City")=="SF")then removeEventHandler("onClientRender",root,sfT) setTimer(lsT,1000,1) triggerServerEvent("onCameraLS", getLocalPlayer()) setElementData(ped,"City","LS") setElementPosition(ped,756.03051757813, -1239.4184570313, 13.552116394043) addEventHandler("onClientGUIClick", root, bLS) end end function lvT() addEventHandler("onClientRender", root, lvT) dxDrawText("Las Venturas",433.0,539.0,641.0,585.0,tocolor(255,255,255,255),3.0,"default","left","top",false,false,true) end function sfT() addEventHandler("onClientRender", root, sfT) sf = dxDrawText("San Fierro",433.0,539.0,641.0,585.0,tocolor(255,255,255,255),3.0,"default","left","top",false,false,true) end added table
-
Do you mean for when the player spawns?
-
A: ya, but the only issue is that the function is only scripted not map-sided. Q: Would you like to see that?
-
A: I'm going to try making a removeWorldModel restoreWorldModel restoreAllWorldModels button in Map Editor Q: What time is it there?
-
A: ok, Jaysds1 Q: What else are you planning to do?
-
A: Ya Q: Want it?
-
it's not playing I think it's this: BTW, I liked it
-
np, I just like helping the community
-
A: In this part of MTA Forums, spam is allowed, but your post count won't go up Q: Get it? ( Didn't know what to say )
-
A: ya, I liked this Vanilla caffee and it tasted so good Q: Do you?
-
here: GUIEditor_Button = {} GUIEditor_Edit = {} rotation = 0 addEvent("onVisibleButtons", true) addEventHandler("onVisibleButtons", getLocalPlayer(), function() GUIEditor_Button[1] = guiCreateButton(0.3688,0.84,0.0625,0.055,"<",true) GUIEditor_Button[2] = guiCreateButton(0.5013,0.84,0.0625,0.055,">",true) GUIEditor_Button[3] = guiCreateButton(0.4013,0.9067,0.1287,0.065,"Empezar a Jugar",true) GUIEditor_Edit[1] = guiCreateEdit(0.4412,0.8367,0.05,0.0567,"0",true) guiEditSetReadOnly(GUIEditor_Edit[1],true) lsT() showCursor(true) bindKey("space", "down", theR) ped = createPed( 0, 756.03051757813, -1239.4184570313, 13.552116394043 ) setElementData(ped,"City","LS") end) numero = 0 addEventHandler("onClientGUIClick", root,function(button,state) if source == GUIEditor_Button[3] then local elements ={GUIEditor_Button[1],GUIEditor_Button[2],GUIEditor_Button[3],GUIEditor_Edit[1]} for i,v in ipairs(elements)do destroyElement(v) end showCursor(false) setCameraTarget( localPlayer ) destroyElement(ped) unbindKey("space") removeEventHandler("onClientRender", root, texto) removeEventHandler("onClientRender", root, theR) local table = {{731.21276855469, -1276.6033935547, 17.6484375}} setElementPosition( localPlayer, 731.21276855469, -1276.6033935547, 17.6484375 ) setPedSkin(localPlayer,numero) setElementFrozen(localPlayer,false) elseif source == GUIEditor_Button[1] then if (button == "left" and state == "up") then if(numero == 0) then numero = 288 setElementModel(ped,numero) end numero = numero - 1 setElementModel(ped,numero) end guiSetText(GUIEditor_Edit[1], " "..getElementModel(ped).."") elseif source == GUIEditor_Button[2] then if (button == "left" and state == "up") then if (numero == 289) then numero = 0 setElementModel(ped,numero) end numero = numero + 1 setElementModel(ped,numero) end guiSetText(GUIEditor_Edit[1], " "..getElementModel(ped).."") end end,true) addEventHandler("onClientRender", root,function( ) if isElement ( ped ) then rotation = rotation + 1 if ( rotation > 359 ) then rotation = 0 end setPedRotation ( ped, rotation ) end end) function lsT() addEventHandler("onClientRender", root, lsT) dxDrawText("Los Santos",433.0,539.0,641.0,585.0,tocolor(255,255,255,255),3.0,"default","left","top",false,false,true) end function theR() if(getElementData(ped,"City")=="LS")then removeEventHandler("onClientRender", root, lsT) setTimer(lvT,1000,1) triggerServerEvent("onCameraLV", getLocalPlayer()) setElementData(ped,"City","LV") setElementPosition(ped, 2323.7517089844, 1283.2214355469, 97.592704772949 ) elseif(getElementData(ped,"City")=="LV")then removeEventHandler("onClientRender",root,lvT) setTimer(sfT,1000,1) triggerServerEvent("onCameraSF", getLocalPlayer()) setElementData(ped,"City","SF") setElementPosition(ped,-1480.8948974609, 920.17132568359, 71.350372314453) elseif(getElementData(ped,"City")=="SF")then removeEventHandler("onClientRender",root,sfT) setTimer(lsT,1000,1) triggerServerEvent("onCameraLS", getLocalPlayer()) setElementData(ped,"City","LS") end end function lvT() addEventHandler("onClientRender", root, lvT) dxDrawText("Las Venturas",433.0,539.0,641.0,585.0,tocolor(255,255,255,255),3.0,"default","left","top",false,false,true) end function sfT() addEventHandler("onClientRender", root, sfT) sf = dxDrawText("San Fierro",433.0,539.0,641.0,585.0,tocolor(255,255,255,255),3.0,"default","left","top",false,false,true) end I've changed the createPed to setElementPosition addEventHandler("onPlayerLogin",root,function() triggerClientEvent(source, "onVisibleButtons", root) setCameraMatrix(source,755.94171142578, -1258.78125, 18.399745941162, 756.03051757813, -1239.4184570313, 13.552116394043) end) addEvent("onCameraLV", true) addEventHandler("onCameraLV", root,function() setCameraMatrix( client, 2322.7954101563, 1257.611328125, 102.61512756348, 2323.7517089844, 1283.2214355469, 97.592704772949 ) end) addEvent("onCameraSF", true) addEventHandler("onCameraSF",root, function() setCameraMatrix( client, -1509.7048339844, 921.08612060547, 75.827659606934, -1480.8948974609, 920.17132568359, 71.350372314453 ) end ) addEvent("onCameraLS", true) addEventHandler("onCameraLS", root, function() setCameraMatrix( client, 755.94171142578, -1258.78125, 18.399745941162, 756.03051757813, -1239.4184570313, 13.552116394043 ) end)
-
I fount the reason, You spelled burger wrong: -- Variables definitions OpenHour = { ["HotDogSaintHospital"] = 18 } SHOP_Objects = {} SHOP_Tents = {} SHOP_Markers = {} SHOP_Peds = {} ObjectWasCreated = false function PlayerWannaFood(player) -- source was already used, changed it to player setElementFrozen(player, true) setPedAnimation(player,"FOOD","EAT_Burger", 2000, false, false, false) -- You spelled burger wrong setElementHealth(player,getElementHealth(player)+20) setTimer(setElementFrozen,5000,1,player, false) end function OpenFoodTents() GameTimeHour, GameTimeMinute = getTime() -- Get the current game time if( GameTimeHour >= OpenHour["HotDogSaintHospital"] ) then -- If the current game time is more that the open hour, so open the tent if(ObjectWasCreated == false) then outputChatBox("Tent open") SHOP_Objects[1] = createObject(643, 1281.20, -1383.30, 12.80, 0, 0, 52) -- Chairs #01 SHOP_Objects[2] = createObject(643, 1282.60, -1379.80, 12.80, 0, 0, 326) -- Chairs #02 SHOP_Tents[1] = createObject(1340, 1285.19, -1382.40, 13.69, 0, 0, 180) -- HotDog Tent SHOP_Markers[1] = createMarker(1284, -1382.4, 12.5, "cylinder", 1, 255, 0, 0, 255) addEventHandler("onMarkerHit", SHOP_Markers[1], PlayerWannaFood) SHOP_Peds[1] = createPed(168, 1286, -1382.4, 14, 90.0) ObjectWasCreated = true end else if(ObjectWasCreated == true) then destroyElement(SHOP_Objects[1]) destroyElement(SHOP_Objects[2]) destroyElement(SHOP_Tents[1]) destroyElement(SHOP_Markers[1]) destroyElement(SHOP_Peds[1]) ObjectWasCreated = false end end end addEventHandler("onResourceStart", resourceRoot,function() setTimer(OpenFoodTents, 10000, 0) end)
-
A: sorry, for post, No, oh, and I know HTML, javascript,CSS, Learning ASP right now Q: Would you like to learn C++ and/or C#?
-
A: Well, I stopped learning C++ and C#, because it was kinda hard and I want to learn it in College, Don't get me wrong or anything but C++ is great, I know a little knowledge about it though Q: SAME QUESTION
-
try this: -- Variables definitions OpenHour = { ["HotDogSaintHospital"] = 18 } SHOP_Objects = {} SHOP_Tents = {} SHOP_Markers = {} SHOP_Peds = {} ObjectWasCreated = false function PlayerWannaFood(player) -- source was already used, changed it to player setElementFrozen(player, true) setPedAnimation(player, "FOOD", "EAT_Burguer", 2000, false, false, false) setElementHealth(player, getElementHealth(player) + 20) setElementFrozen(player, false) end function OpenFoodTents() GameTimeHour, GameTimeMinute = getTime() -- Get the current game time if( GameTimeHour >= OpenHour["HotDogSaintHospital"] ) then -- If the current game time is more that the open hour, so open the tent if(ObjectWasCreated == false) then SHOP_Objects[1] = createObject(643, 1281.20, -1383.30, 12.80, 0, 0, 52) -- Chairs #01 SHOP_Objects[2] = createObject(643, 1282.60, -1379.80, 12.80, 0, 0, 326) -- Chairs #02 SHOP_Tents[1] = createObject(1340, 1285.19, -1382.40, 13.69, 0, 0, 180) -- HotDog Tent SHOP_Markers[1] = createMarker(1284, -1382.4, 12.5, "cylinder", 1, 255, 0, 0, 255) addEventHandler("onMarkerHit", SHOP_Markers[1], PlayerWannaFood) SHOP_Peds[1] = createPed(168, 1286, -1382.4, 14, 90.0) ObjectWasCreated = true end else if(ObjectWasCreated == true) then destroyElement(SHOP_Objects[1]) destroyElement(SHOP_Objects[2]) destroyElement(SHOP_Tents[1]) destroyElement(SHOP_Markers[1]) destroyElement(SHOP_Peds[1]) ObjectWasCreated = false end end end addEventHandler("onResourceStart", resourceRoot, function () setTimer(OpenFoodTents, 60000, 1) end)
-
A: It kinda took me long... Since I'm a visual learner, I just took community scripts especially login scripts and tried playing around with them, until I started understanding what some things did. Q: How do you like LUA so far?
-
A: lol, Yes Q: SAME QUESTION
-
right here, just add in setCameraMatrix() function theR() if(getElementData(ped,"City")=="LS")then removeEventHandler("onClientRender", root, lsT) setTimer(lvT,1000,1) setElementData(ped,"City","LV") setCameraMatrix(X,Y,Z,RX,RY,RZ) --HERE, ADD X,Y,Z and RX,RY,RZ elseif(getElementData(ped,"City")=="LV")then removeEventHandler("onClientRender",root,lvT) setTimer(sfT,1000,1) setElementData(ped,"City","SF") setCameraMatrix(X,Y,Z,RX,RY,RZ)--HERE, ADD X,Y,Z and RX,RY,RZ elseif(getElementData(ped,"City")=="SF")then removeEventHandler("onClientRender",root,sfT) setTimer(lsT,1000,1) setElementData(ped,"City","LS") setCameraMatrix(X,Y,Z,RX,RY,RZ)--HERE, ADD X,Y,Z and RX,RY,RZ end end BTW, you don't care about the debugmessages?
-
This is the closest I could get: GUIEditor_Button = {} GUIEditor_Edit = {} rotation = 0 addEvent("onVisibleButtons", true) addEventHandler("onVisibleButtons", getLocalPlayer(), function() GUIEditor_Button[1] = guiCreateButton(0.3688,0.84,0.0625,0.055,"<",true) GUIEditor_Button[2] = guiCreateButton(0.5013,0.84,0.0625,0.055,">",true) GUIEditor_Button[3] = guiCreateButton(0.4013,0.9067,0.1287,0.065,"Empezar a Jugar",true) GUIEditor_Edit[1] = guiCreateEdit(0.4412,0.8367,0.05,0.0567,"0",true) guiEditSetReadOnly(GUIEditor_Edit[1],true) lsT() showCursor(true) bindKey("space", "down", theR) ped = createPed( 0, 756.03051757813, -1239.4184570313, 13.552116394043 ) setElementData(ped,"City","LS") end) numero = 0 addEventHandler("onClientGUIClick", root,function(button,state) if source == GUIEditor_Button[3] then local elements ={GUIEditor_Button[1],GUIEditor_Button[2],GUIEditor_Button[3],GUIEditor_Edit[1]} for i,v in ipairs(elements)do destroyElement(v) end showCursor(false) setCameraTarget( localPlayer ) destroyElement(ped) unbindKey("space") removeEventHandler("onClientRender", root, texto) removeEventHandler("onClientRender", root, theR) local table = {{731.21276855469, -1276.6033935547, 17.6484375}} setElementPosition( localPlayer, 731.21276855469, -1276.6033935547, 17.6484375 ) setPedSkin(localPlayer,numero) setElementFrozen(localPlayer,false) elseif source == GUIEditor_Button[1] then if (button == "left" and state == "up") then if(numero == 0) then numero = 288 setElementModel(ped,numero) end numero = numero - 1 setElementModel(ped,numero) end guiSetText(GUIEditor_Edit[1], " "..getElementModel(ped).."") elseif source == GUIEditor_Button[2] then if (button == "left" and state == "up") then if (numero == 289) then numero = 0 setElementModel(ped,numero) end numero = numero + 1 setElementModel(ped,numero) end guiSetText(GUIEditor_Edit[1], " "..getElementModel(ped).."") end end,true) addEventHandler("onClientRender", root,function( ) if isElement ( ped ) then rotation = rotation + 1 if ( rotation > 359 ) then rotation = 0 end setPedRotation ( ped, rotation ) end end) function lsT() addEventHandler("onClientRender", root, lsT) dxDrawText("Los Santos",433.0,539.0,641.0,585.0,tocolor(255,255,255,255),3.0,"default","left","top",false,false,true) end function theR() if(getElementData(ped,"City")=="LS")then removeEventHandler("onClientRender", root, lsT) setTimer(lvT,1000,1) setElementData(ped,"City","LV") elseif(getElementData(ped,"City")=="LV")then removeEventHandler("onClientRender",root,lvT) setTimer(sfT,1000,1) setElementData(ped,"City","SF") elseif(getElementData(ped,"City")=="SF")then removeEventHandler("onClientRender",root,sfT) setTimer(lsT,1000,1) setElementData(ped,"City","LS") end end function lvT() addEventHandler("onClientRender", root, lvT) dxDrawText("Las Venturas",433.0,539.0,641.0,585.0,tocolor(255,255,255,255),3.0,"default","left","top",false,false,true) end function sfT() addEventHandler("onClientRender", root, sfT) sf = dxDrawText("San Fierro",433.0,539.0,641.0,585.0,tocolor(255,255,255,255),3.0,"default","left","top",false,false,true) end (WARNING: THE DEBUG MESSAGE GOES ON BUT THE DX TEXT CHANGES)
-
A: lol, same as when I joined MTA Q: How does it feel to have 154 posts?
-
function texto() dxDrawText("Los Santos",433.0,539.0,641.0,585.0,tocolor(255,255,255,255),3.0,"default","left","top",false,false,true) end
-
A: Need more money Q: What's so good about 7.5?
-
A: Never knew about computers back then Q: How's the 7.5?