Jump to content

OnlineCheater

Members
  • Posts

    55
  • Joined

  • Last visited

Everything posted by OnlineCheater

  1. I'd like to show different player's cameras at the same time ye.. not one by one updating with a long timer (1 sec is too long) .. not that
  2. Is it possible to make it on several kind of cameras? or it only works on the local player's camera?
  3. Because there are cameras to set according to lots of events.. I won't show my code then because it's too big. Problem solved.
  4. That doesn't work either, my system is complicated, the problem comes from others sides.. Just forget this problem and considere it as solved, I'll find a solution alone.
  5. Hey all, I've this code: addEventHandler("onClientRender", root, function() if travelling then smoothMoveCamera(....) -- [url]https://wiki.multitheftauto.com/wiki/SmoothMoveCamera[/url] else ???? end end ) So here is my problem, once travelling is false, I want to set the camera on the player... ( the part to complet with "????" ) So I've already tried two ways, which are the following ones: setCameraMatrix(getCameraMatrix(localPlayer)) -- gives floods of errors like: expected vector at argument .... setCameraTarget(getCameraTarget(localPlayer)) -- freezes the camera on the player but only one position so you're unable to move it ...
  6. Hey everyone, I just want to know how can I get the player's screen and use it as a texture on an image or an object maybe... If there's any resource shared on community.multitheftauto.com, please link it here so I can check by myself how to do that... Thanks for your help!
  7. Works perfectly, thank you TAPL! I had already tried this way before tosfera but it didn't worked, thank you anyway
  8. Gonna test it, thank you TAPL!
  9. Hey all, I just want to save a camera target when I die whilte I'm in a vehicle and then even if the vehicle moves, the camera keeps motionless thanks to the camera saved when the player died. Could you please tell me how I can do this? I have no idea how to save the coordonates of the camera when the player dies... addEventHandler("onClientPlayerWasted",root, function() ........ end)
  10. Alright, thanks for help everyone I've successfully done this easy thing.. Problem Solved!
  11. source; https://forum.multitheftauto.com/viewtopic.php?f=91&t=47897 I was editing my post just after I posted it for you to check what I've already done and then I've seen your quote which was added so quickly.. Anyway, it seems like you're online to get more and more posts only... I've added my script code very quickly and you rushed faster. WHY? I guess it's for you to get +1 post to your account database of this forum... Great! Give more lessons! Just wanna tell you that my code doesn't work, that's why I didn't posted firstly what I had done.
  12. Hey everyone, I just wanted to have a short example of animation with a picture. Use dxDrawImage & InterpolateBetween please. Thanks in advance! Here is my code: local g_Interface = nil sX,sY = guiGetScreenSize() function animatedPicture() if g_Interface then return end g_Interface = {} g_Interface.imgWidth, g_Interface.imgHeight = 200, 200 g_Interface.startTime = getTickCount() g_Interface.startSide = {0, 0} g_Interface.endSide = {g_Interface.imgWidth, g_Interface.imgHeight} g_Interface.endTime = g_Interface.startTime + 1000 local now = getTickCount() local elapsedTime = now - g_Interface.startTime local duration = g_Interface.endTime - g_Interface.startTime local progress = elapsedTime / duration local width, height, _ = interpolateBetween (g_Interface.endSide[1], g_Interface.endSide[2],0, g_Intefaace.endSide[1], g_Interface.endSide[2], 0, progress, "OutElastic") dxDrawImage(sX/2-60,16,width,height,"img/image.png") end
  13. Ye, once it's in the server side [[ ]], it transfers to the client side (in the res2). Remember that dxDrawText works fine and it's a client function too...
  14. Good job PewX but you inverted res and res2 on your quote, the code is ok but still there's no triggerLatentClientEvent in res2...
  15. Just added the first code quote.. if you want to see http://pastebin.com/b2JGErNi
  16. Trust me, I checked thousand of times what have I done, the function Main is exported, picture is in the meta, arguments are safe... I think it's a MTA bug, it can't handle onClientRender with this way.. too complicated for it to generate a picture?
  17. hey all, I'm creating a picture in a function with dxDrawImage like for example: -- FIRST SCRIPT name: "res" -- both following functions are in the same client file function dl() dxDrawText("OK" blablablabla) dxDrawImage(x, y, sx, sy blablabla) -- HERE end >> just added this bunch of code to pastebin http://pastebin.com/b2JGErNi function Main(arg1, arg2) addEventHandler("onClientRender", root, letsCreatePicture) -- other stuff here end -- SECOND SCRIPT name: "res2" -- server.lua local stuff = [[ local function transfer() exports["res"]:Main(arg1, arg2) -- using first script's func -- other stuff here end --more functions and codes ]] addEvent("onClientAccept",true) addEventHandler("onClientAccept",root, function() triggerLatentClientEvent(source,"onServerSend",100000,false,source,transfer) end) -- client.lua triggerServerEvent("onClientAccept",getLocalPlayer()) RESULT: I can only see my "OK" and not the image, the problem is not related to arguments, the whole syntax is fine and there's no error in debugscript... So can somebody tell me a way to draw that picture with this order ... Also I've checked everything related to triggers and dxdrawimage on wiki... Still everything seem to be good Thanks in advance!
  18. I successfully connected a script to the db table created on phpMyAdmin It worked!
  19. It's ok guys don't worry I found another way to use phpMyAdmin, it's EasyPHP
  20. My advice: Never accept servers & hosts for free, you will be scamed if you accept. This happened to me several times, trust me.
  21. In my opinion, it would be better if you post screenshots of yours maps instead of spreading them like that.. So users would know how are yours maps.
  22. Alright else the way of removing the tags should work right? Gonna test it tomorrow
  23. Mapname is like those 4 examples which I wrote before the code. Do you understand it ?
×
×
  • Create New...