
Fabioxps
Members-
Posts
229 -
Joined
-
Last visited
Everything posted by Fabioxps
-
stop the music at the end, before destroying? getSoundLength getSoundPosition setSoundPaused setSoundPosition --position 0 not destroy the music and resumes it element playSound ( string soundPath, [ bool looped = false ] ) I do not want to use the agurmento loop to resume music
-
excuse the inconvenience but I do not know how to deploy it in my code.
-
I'm sorry I'm lost in your code how can I call this function with my code Please do not judge me my sincere apologies.
-
can you show me how to load slowly perhaps an example with my code? I am very grateful if you or someone can help me.
-
load XML files without causing a crash on the server, I am carrying a map. this is only possible with php? for i,par in ipairs(xmlNodeGetChildren(arquivoMap)) do local objectType = xmlNodeGetName(par) if objectType == "object" then _indexInto.obj = {insertType = objectType, model = tonumber(xmlNodeGetAttribute(p,"model")), pX = tonumber(xmlNodeGetAttribute(p,"posX")), pY = tonumber(xmlNodeGetAttribute(p,"posY")), pZ = tonumber(xmlNodeGetAttribute(p,"posZ")), rX = tonumber(xmlNodeGetAttribute(p,"rotX")), rY = tonumber(xmlNodeGetAttribute(p,"rotY")), rZ = tonumber(xmlNodeGetAttribute(p,"rotZ")) or tonumber(xmlNodeGetAttribute(p, "rotation"))} end end _indexIntoTable[#_indexIntoTable+1] = _indexInto.obj
-
can you show me an example?
-
it is possible to look at the screen of a specific player? how can I do this? local screenWidth,screenHeight = guiGetScreenSize() addEventHandler("onClientResourceStart", root, function() myScreenSource = dxCreateScreenSource ( screenWidth, screenHeight ) end ) function cleanmyscreen() if myScreenSource then dxUpdateScreenSource( myScreenSource ) dxDrawImage( screenWidth - screenWidth, screenHeight - screenHeight, 300, 300, myScreenSource, 0, 0, 0, tocolor (255, 255, 255, 255), true) end end addEventHandler( "onClientRender", root, cleanmyscreen) obs: using dxCreateScreenSource and dxDrawImage I do not want anything like setCameraTarget or setCameraMatrix
-
this returns the camera 1 currentSelection = #camerasSelection this returns the correct camera 3 currentSelection = currentSelection+#camerasSelection
-
why not work? function call2( text1, text2, text3, type, serverport ) if serverport ~= getServerPort() then outputChatBox(text1.." ".. text2.." ".. text3.." ".. serverport) end end function playerChatCallback() end function goCreateServer( text1, text2, text3, type ) callRemote ( "mtasa://127.0.0.1:22003", getResourceName(getThisResource()), "call2", playerChatCallback, text1, text2, text3, type, getServerPort() ) end local text1 = "1" local text2 = "2 " local text3 = "3" goCreateServer( text1, text2, text3, type )
-
sorry my bad english I want to save and load when the player enters and joins team how can I save and load the data
-
I want to save the gang with executeSQLQuery the gang is not being loaded at login
-
https://community.multitheftauto.com/ind ... ls&id=2349 https://community.multitheftauto.com/ind ... ls&id=7574 https://community.multitheftauto.com/ind ... ls&id=3936 https://community.multitheftauto.com/ind ... ils&id=319 all https://community.multitheftauto.com/ind ... ney&page=4
-
after canceling can no longer use the triggerEvent that was canceled? exemple: local playerDataTable = {} local function functionSend(responseData, errno, source, arg1) if errno == 0 then triggerLatentClientEvent(source,"onClientGotFile",150000,false,source,responseData,arg1); end local tableHandlers = getLatentEventHandles ( source ) if tableHandlers then local handler = tableHandlers[#tableHandlers] if handler then playerDataTable[source] = handler elseif playerDataTable[source] then playerDataTable[source] = nil end end -- end end addEvent("onClientDownload",true) addEventHandler("onClientDownload",root, function(arg1) ----- --- --- finctionSend(data,0,source,arg1); end end) function destoryLatentEventForClient(player) local handler = playerDataTable[player] if handler then local percentComplete = getLatentEventStatus(player, handler)--["percentComplete"] if percentComplete and percentComplete ~= 100 then --outputChatBox((tonumber(percentComplete) or 0) .. "%",player) cancelLatentEvent(player, handler ) end playerDataTable[player] = nil end end addEvent("onClientWantDestroyEvents",true) addEventHandler("onClientWantDestroyEvents",getRootElement(),destoryLatentEventForClient) addEventHandler("onPlayerQuit",root, -- clean up the memory. function() if playerDataTable[source] then playerDataTable[source] = nil end end) I want to use the event again
-
it cancels and for sending? local mycode = "[ ..., code ]" [lua]local playerDataTable = {} addCommandHandler("send", function(player) triggerLatentClientEvent (player,"enviarClient",10000,player,mycode) local tableHandlers = getLatentEventHandles ( player ) if tableHandlers then local handler = tableHandlers[#tableHandlers] if handler then playerDataTable[player] = handler elseif playerDataTable[player] then playerDataTable[player] = nil end end end) addCommandHandler("cancel",function() if playerDataTable[source] then playerDataTable[source] = nil end end)
-
is possible to cancel a specific event?
-
this will cancel the event?
-
syntax is player is correct? local mycode = [ ..., code ] triggerLatentClientEvent (player,"enviarClient",10000,player,mycode) addCommandHandler("cancel",function() local table = getLatentEventHandles ( player ) local handler = table[#table] if handler then cancelLatentEvent( player, handler ) outputChatBox(tostring(getLatentEventStatus( handler)["percentComplete"])) end end)