-
Posts
460 -
Joined
-
Last visited
Everything posted by MisterQuestions
-
Well i added the "_", n worked... but one question, you know that map editor is adding: -mapEditorScriptingExtension_c.lua -mapEditorScriptingExtension_s.lua and uses "addEvent", how to wrap that function, or what to do with that? "requestLODsClient" <~ This is the event that should add, on map load
-
Hey all, it is possible to add vehicle upgrades but, customized? Like a Spoiler, but a custom one or something like that??
-
Search a table position with a string or something?
MisterQuestions replied to MisterQuestions's topic in Scripting
but i want to get index, searching from a value -
Hey, it is possible to search an item position on a table, by a string? mytable = { [1] = {account1,name1} [2] = {account2,name2} } example i want to get a position on the table for example i want to get [1] searching by it name or account How can i make it?
-
Hey all, i have an vps and i was preparing everything on my local server. And it works fine, with just 1 bug or 2 but it was perfect!! So yesterday i uploaded to vps and surprice, Some maps doesn't load, userpanel draws a horrible line under the screen any possible reasongs? Solutions? (I don't know if this is the right section). Local server: -Windows 8 -AMD 2 GHz -8GB Ram VPS, Hoster: -Linux/Ubuntu 12.04 -512 Ram -1 Core, Uknow Ghz or manufacturer. I cheked vps status, non-overloaded, so i don't have any solution.
-
Oh yes Its a little long but... Server-Side function peds() if not isElement(RacerPed) then RacerPed = createPed (0,2068.4143066406, 1007.5880737305, 10.190197944641) end if not isElement(RaceVehicle) then RaceVehicle = createVehicle (411,2068.4143066406, 1007.5880737305, 10.190197944641,0,0,0) warpPedIntoVehicle ( RacerPed, RaceVehicle ) triggerClientEvent ( "ondrive", getRootElement(),RacerPed) end end Client-Side function driveit(trped1) if trped1 then setPedControlState(trped1,"accelerate",true) setTimer(function () setPedControlState(trped1,"accelerate",false) end,6000,1) startfollow(trped1) car = getPedOccupiedVehicle(trped1) end end addEvent( "ondrive", true ) addEventHandler( "ondrive", getRootElement(), driveit ) function follow(trped1) local x, y, z = getElementPosition(car) setCameraMatrix(x+5, y+12, z+4, x, y, z) end function startfollow(trped1) --triggerEvent("stopDrawInfo",getRootElement()) addEventHandler("onClientPreRender", getRootElement(),follow) setTimer(function()timerTime = timerTime - 1 end, 1000, 7) Timer = setTimer(function() fadeCamera ( false, 1.0, 0, 0, 0 ) end, 7000, 1) setTimer(function() stopfollow() triggerServerEvent("killracer",getRootElement()) end, 8000, 1) setElementDimension ( getLocalPlayer(), 0 ) end addEvent( "StartFollowing", true ) addEventHandler( "StartFollowing", getRootElement(), startfollow )
-
Still lagging. (Just if is there 1 player online no lag, If is 2 or more, is laggy)
-
So, i should create em on client too? or there's anyway to stay on server side and try use it with out lags.
-
Hey i have a error on this script, this suposes to move with vehicle, but it lags if is more than a user. Code: Client-Side: function follow(trped1) local x, y, z = getElementPosition(car) setCameraMatrix(x+5, y+12, z+4, x, y, z) end addEventHandler("onClientRender", getRootElement(),follow)
-
But if they start with map resource, how can i down volume? Just like setting their volume 0, play the desired sound and then when it stops, up volume(back to normal) (Sorry for my extra-bad english)
-
Hey all, im currently adding things to a race gamemode, but i want to play a sound when just is 1 player alive, but if map have any song playing would sound both... If use getElementsByType("sound") will mute the sound that i want to play, any idea??
-
o yes thanks
-
How to make arithmetic with this string? code: function addHeight(extra) extraHeight = extraHeight + extra end addCommandHandler("addh", addHeight)
-
¿hacer que n dxDrawRec cambie de color con el mouse encima?
MisterQuestions replied to lLinux's topic in Scripting
Hmmm, no seria más eficaz usar isMouseInPosition? -
Bonsai, why you always say that i cant? Just if you dont wanna help just ignore my post ...
-
I think, i need to use: getElementsByType getPlayerName getPlayerTeam getTeamName Sure?
-
jeje ok im currently starting...
-
Hey all, i want to make a scoreboard. Yes...one that could load players, teams, if a player is on a team move it under team row. What do i will need? And how can i start?
-
Just delete it from arenas_s.lua, and from lobby? lobbyy.lua... Edit: Else you have to remove arena maps from mapmananger
-
What does that mean?
-
Thanks all , you helped me a lot. Here's the result: http://youtu.be/KUHuUc4Fne8
-
worked thanks..., but if i scroll up, doesn't dissapear, any reason?
-
Ah i got it!, just move rectangle into render target .-. So simple!
