-
Posts
1,423 -
Joined
-
Last visited
-
Days Won
19
Everything posted by Tekken
-
Hi, I’m trying to make a "tetris" inventory like DayZ/Tarkov/RE4 where you have say 10x5 squares and you have to carefully place items so you optimize your space, the problem is I want to be able to turn items by 90degree so you can take better advantage of the space, all good other than actually drawing the image, I can’t seem to figure out what the rotation offet x and y should be, also note that Items will have different sizes like 1x2 2x3 4x1 etc.. You guys have any idea?
-
Also always use client variable server-side instead of source and/or passing the localPlayer as an argument when referring to the player that triggered a server event.
-
I'd highly suggest switching to pAttach as it has way better performance
-
Salut, ti-am mutat topicul pe sectiunea RO deoarece ai postat in romana pe sectiunea engleza.
-
Hi, What is your host? Also check /debugscript 3 whenever someone join to see if you have a lot of erors/warnings that may give your server a hard time and try to fix them.
-
Ro: Lasa-mi mesaj aici, si ar trebui sa poti sa-mi trimiti DM, nu prea mai folosesc Discird, si te rog daca mai scrii in romana fie lasa un mesaj in ambele limbi fie foloseste sectiunea romaneasca, mersi. Eng: Leave a message here if you wish, also you should be able to send me PM’s
-
<>= this is not a valid operator! what do you mean by "in his hands" ?
-
Make sure to use the scaling for both position and size like so: local sW,sH = guiGetScreenSize(); local scalex,scaley = sW/1920, sH/1080; -- make sure to check they look good on 1920*1080! -- so to draw a square or 200*200px on the middle of the screen: local width, height = 200, 200; dxDrawRectangle(sW/2-(width*scalex)/2, sH/2-(height*scaley)/2, width*scalex, height*scaley); Also i suggest you to checkout this tutorial:
-
Replace if isCardShop(true) then with if isCardShop == true then Also to set it true or false do isCardOpen = true or isCardOpen = false
-
Just change player and thePlayer with source restart and reconnect it should work
-
May I see how you implement it?
-
Hello, "onPlayerJoin" > fadeCamera(player, true) also spawn the player and setCameraTarget(player)
-
You will have to check if the player is in that colshape https://wiki.multitheftauto.com/wiki/IsElementWithinColShape or check when he hits that colshape https://wiki.multitheftauto.com/wiki/OnElementColShapeHit
-
function onPlayerChat(msg,type) if (msg:lower():find("mtasa") or msg:find("://")) or msg:find("%d") then --the 3rd operation was and instead of or :) cancelEvent() source:kick("Divulgação!") end end addEventHandler("onPlayerChat", root, onPlayerChat) This should work
-
Well first of all what's wrong ? Second of all the script you shown only create a col sphere and save it to a table so I assume it's more to it isn't it?
-
Hi, why not sending the code already? Also to do so you might need: https://wiki.multitheftauto.com/wiki/GetDistanceBetweenPoints3D or a 'better' solution for me would be: https://wiki.multitheftauto.com/wiki/CreateColPolygon
-
Hi, check this out, might help you https://wiki.multitheftauto.com/wiki/Resource:OnElementSpawn
-
Hi, for better assistance we need to see the code