Jump to content

lolcatsareawesome

Members
  • Posts

    38
  • Joined

  • Last visited

Everything posted by lolcatsareawesome

  1. Well, I try to edit the coordinates but I can't find for this rotation. code: Elements = {} img = dxCreateTexture("img.png") addEventHandler("onClientRender", getRootElement(), function() for i, k in ipairs(Elements)do dxDrawMaterialLine3D ( k.x, k.y, k.z, k.lx, k.ly, k.lz, img, 10, tocolor(255, 255, 255, 255), 0, 0, 0) end end) function ckl ( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement ) if button == "left" and state == "down" then local temp = {} temp.x = worldX; temp.y = worldY; temp.z = worldZ; temp.lx = worldX; temp.ly = worldY; temp.lz = worldZ; table.insert(Elements, temp) end end addEventHandler ( "onClientClick", getRootElement(), ckl ) Look: temp.x = worldX; temp.y = worldY; temp.z = worldZ; temp.lx = worldX+10; temp.ly = worldY; temp.lz = worldZ; temp.x = worldX; temp.y = worldY; temp.z = worldZ; temp.lx = worldX; temp.ly = worldY+10; temp.lz = worldZ; temp.x = worldX; temp.y = worldY; temp.z = worldZ; temp.lx = worldX; temp.ly = worldY; temp.lz = worldZ+10; I really don't undestand how this works.
  2. bindKey("fire", "down", myFunction) ?
  3. Okay, so I used dxDrawMaterialLine3D but I've a problem. We can't do rotation on the element? I mean, in the video, the thing is on the floor like rotation in 90°. In my script, it's in 0. Possible? My code: function ckl ( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement ) if button == "left" and state == "down" then local img = dxCreateTexture("img.png") addEventHandler("onClientPreRender", getRootElement(), function() dxDrawMaterialLine3D ( worldX, worldY, worldZ,worldX, worldY, worldZ+10, img, 10, tocolor(255, 255, 255, 255), 0, 0, 0) end) end end addEventHandler ( "onClientClick", getRootElement(), ckl )
  4. Hi all, I want to know how the guy make his icons in DX i mean, what kind of calculs did he make for that? How he put theses animations ? Tnx
  5. Hi there, I'm searching about all weapon icons from GTA SA. You know, theses weapon icons on the right top. If someone know a link where download theses files that would be awesome. Thanks.
  6. Hi again, I want to know how to call a function where isn't in the same file. I mean, in the file A i've a function and I want to call it from the file B, theses files are from the same resource. I don't want to use trigger events. Is it possible? Thanks !
  7. Hi, How can i make the ped created by createPed attack an player? A function exist for that? Thanks
  8. Of course I change... But still not working
  9. Well, of course i've added the resource to the ACL but in the Admin group. They say to create an group for that resource, I think it's useless cuz the Admin group got all rights. <group name="OutRPCGroup"> <acl name="OutRPC" /> <object name="resource.examplechat" /> </group> <acl name="OutRPC"> <right name="function.callRemote" access="true" /> </acl> <group name="InRPCGroup"> <acl name="InRPC" /> <object name="user.http_guest" /> </group> <acl name="InRPC"> <right name="resource.examplechat.http" access="true" /> </acl> The script still not working. And about the 2 other questions?
  10. There don't have any errors on the debug. The message isn't send to the second server. I don't know if this script is now obsolete.
  11. Hi everyone, I've some questions and I hope you have the answer. The first one is, how I can get the server IP where the script is executed? I search for a function talking about that but I can't find it. Why it doesn't exist? Second question is about an script i've seen on the wiki and I would love to use it's that: function outputChatBoxRemote ( playerName, message, type, serverport ) if serverport ~= getServerPort() then outputChatBox ( "From " .. playerName .. " on " .. serverport .. ": " .. message ) end end function playerChatCallback() end function playerChat ( message, type ) callRemote ( "play.mtabeta.com:33004", getResourceName(getThisResource()), "outputChatBoxRemote", playerChatCallback, getPlayerName(source), message, type, getServerPort() ) callRemote ( "play.mtabeta.com:33005", getResourceName(getThisResource()), "outputChatBoxRemote", playerChatCallback, getPlayerName(source), message, type, getServerPort() ) callRemote ( "play.mtabeta.com:33006", getResourceName(getThisResource()), "outputChatBoxRemote", playerChatCallback, getPlayerName(source), message, type, getServerPort() ) end addEventHandler ( "onPlayerChat", getRootElement(), playerChat ) Link: https://wiki.multitheftauto.com/wiki/CallRemote I've read the instructions but this still not working. Last question, with the script below. It only works with servers who have the same IP with differents ports? I hope you can help me guys
×
×
  • Create New...