Javier
Members-
Posts
92 -
Joined
-
Last visited
Everything posted by Javier
-
Alexs lo tengo asi , pero me sigue dando el texto asi outputChatBox("#FF1010LocationX: " ..x, thePlayer, 255, 255, 255, true)
-
No, lo tengo como client... lo que quiero es que cuando el player escriba un comando salga "location ( con el color ) " ..x,etc ,etc
-
Hola amigos, desde ayer que tengo problema con el chatBox... Este es mi script outputChatBox("#FF1010LocationX: " ..x, thePlayer, 255, 255, 255, true) Lo tengo como client y cuando sale el mensaje sale todo asi "0FF1010LocationX" asi sale en el chat... alguna forma de arreglarlo? Gracias.
-
Hello guys. Check my script function kill ( slothbot ) local x, y, z = getElementPosition( slothbot ) -- This is the line local hora,minuto = getTime() if ( hora == 02 and minuto == 58 ) then createExplosion(x, y, z, 4) killPed( slothbot ) destroyElement( blip ) outputChatBox("NEMESIS HA SIDO DESTRUIDO", getRootElement(), 0, 255, 0) end end setTimer(kill, 2000, 0) Problem BOSS\Jason.lua:22: Bad argument @ 'getElementPosition' [Expected element at argument 1, got nil] How i can fix this?
-
Hola chicos, miren este script, me dice BOSS\Jason.lua:22: Bad argument @ 'getElementPosition' [Expected element at argument 1, got nil] El script function kill ( slothbot ) local x, y, z = getElementPosition( slothbot ) -- Este me dice que está mal.. local hora,minuto = getTime() if ( hora == 02 and minuto == 58 ) then createExplosion(x, y, z, 4) killPed( slothbot ) destroyElement( blip ) outputChatBox("NEMESIS HA SIDO DESTRUIDO", getRootElement(), 0, 255, 0) end end setTimer(kill, 2000, 0)
-
when I activate the resource, the sky is always black even though the weather is not the number 9
-
Hey guys, check this out function blackSky ( ) local weather = getWeather ( ) if ( ( weather ) == 9 ) then setSkyGradient ( 0, 0 ,0, 10, 10 ,10 ) else resetSkyGradient ( ) end end addEventHandler ( "onResourceStart", resourceRoot, blackSky ) The problem is that the sky is always black. Although the weather is not number 9...Any idea how I can fix it?
-
Envez de instalar el archivo en en la carpeta resources, instalalo en la carpeta [gamemodes]. Nada más.
-
Y donde cancelas el evento cuando el player entra al auto?.
-
Hello friends, look my script. I want the water to change color but do not know if this is well done. local waters = { } water[1] = "255, 255, 100, 20" water[2] = "100, 20, 30, 40" water[3] = "0, 0, 0, 0" function cambio () setWaterColor ( [ math.random ( #waters ) ] ) end addEventHandler("onResourceStart", cabio) setTimer(cambio, 10000, 0) Thanks.
-
Hello friend , I' have a problem with my script. Error: expected near close at line 1 '{' and my script local climas = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 } function clima() setWeather ( climas [ math.random ( #climas ) ] ) end addEventHandler("onResourceStart", resourceRoot, clima) setTimer(clima, 1000, 0)
