-
Posts
1,028 -
Joined
-
Last visited
-
Days Won
1
Everything posted by ..:D&G:..
-
Can you help me set this up as well? [...]Either I'm dumb, or this clearly states he is interested in col files. But whatever, I helped as much as I could - I have no experience in editing DFFs.I wanted both the dffs and the cols all in 1 file each so they make the whole map without me having to replace 1 object for each map piece, but it seems that it's not possible as the map pieces will just be inside each other, so yeah.. both of you were right, but it cannot be done Maybe @Xwad could share the code with me, with the objects that are making the whole map.
-
Well I want to get the position of where the ped is looking at. Lets say I have a wood box on the ground, and if the player is close to it and is looking directly at the box, a message like "You are looking at the box" should appear.
-
Is there any easy way to have an action function that does something when the player looks straight at an object and presses 'E' for example, like in games like Rust or Reign Of Kings? Don't really know how to explain this, but here is an example: Thanks.
-
Thanks a lot
-
((TOPIC NOT OFFICIAL! WORK IN PROGRESS(WIP))) Test Server: PROJECT IS DEAD FOR SALE IN THE CURRENT STATE Good day everyone! As a survival games lover, I've played Rust and other survival games and a few days I decided with a friend (an4rei) who loves Rust (literally, he has 2.000+ hours on Rust) to make a MTA version of the game! We never seen a survival server with no zombies, just pure survival with some PvP. For those of you who played Rust before, might already know what Rust is and what it has to offer but were is a brief introduction of the game! What is Rust? Well Rust is a normal survival game with all the basics needed for suvival. Rust is not like the normal survival games nowadays, a post apocalyptic game where you have to fight off zombies and sometimes player. You spawn as a naked guy and the only thing you have is a rock... You gather wood and other resources to make yourself a little house and and other things you require for survival. From that moment, you can decide what you want to be, either a raider with a big base, lots of friends that goes out at night and raids houses and people, or a friendly guy that just wants to have a little house and just relax by collecting wood. Crafting, scavenging and even fighting are stuff you will do during your time playing, just something normal for this game. There will be friendly and unfriendly players, but it's always better to just play with your friends, just to be safe you don't get kidnapped and get raped... What are we trying to do? We are trying to copy Rust in a way, recreating the Rust feeling in MTA. At the moment we are trying to make some objects such as guns and furnitures from Rust and include them in the server. Also, we are looking into adding as many Rust features as possible, such as the Tool Cupboard and Sleepers. We are trying to mimic the interface used by Rust but might take a while as an4rei is still learning and I am the only main scripter but still learning myself, so some scripts might seem out of place or messy, but we will get there What have we done so far? Guns: Objects: Interface: Features: Current Version: v0.3 Pre-Alpha Changelog: Leave your thoughts and feedback on what you think and on what we should add! Also, feel free to ask any questions! This is not the official topic for the server but the topic will be updated on what we are adding/changing to the server! This is just a small presentation of what we are trying to do, to see how you guys react to it and also to get some feedback. There is no fixed date on when the server will be done. Development Time: ~40hrs Progress: 55%
-
So I did this image using dxDrawImage, but it seems to have some while lines as outline. Some other images I drawn using dxDrawImage have some lines. Also, to mention that the images have been cut from another one in photoshop, but they are clean with no outline or lines. dxDrawImage(s[1]*48/52,0, s[1]*304/4000,s[2]*24/200, "files/images/version.png", 0, 0, 0, tocolor(255, 255, 255, 255),true)
-
Which file? From what I downloaded from the link provided by you, each .col has only 1 model
-
Can you help me set this up as well? I tried some while ago but it takes too much time to put all the pieces together as it seems that the map is made from different parts, it's not all just 1 file/object Thanks.
-
Anyone?
-
Ok so I want to recreate the notification system from Rust: The problem is, I don't know how to make the DX Drawn rectangle move up and create a new one under, and after 2 new notifications, fade the top ones.. Like in the picture basically... So this is how I started it: dxDrawRectangle(s[1]*48/60, s[2]*28/35, s[1]*304/1700, s[2]*24/600 ,tocolor(114,140,69,150)) dxDrawText("Stone +5", s[1]*48/59.5, s[2]*28/17.35, s[1]*50/1440, s[2]*24/900, tocolor(192,192,192,210),1.2,"default-bold","left","center", false, true, false, false, false) Thanks.
-
I know all this already lol, I wanted to avoid using ipairs loops to find the colshape, but I guess I'll have to use it Thanks for the help!
-
Is there any way to detect if the colshape is hitting a colshape with a specific elementData? Because isElementWithinColShape requires a certain colshape at argument 2 and I want to avoid using ipairs to check all the colshapes from the server, so is there any other way?
-
I don't want to see for myself if 2 colshapes are colliding, I want the script to check, and if 1 colshape is in another it should say something like "You cannot place your protection here"...
-
exports['anticheat-system']:changeProtectedElementDataEx(veh, "lights", 0, true) Seems like a Valhalla roleplay script
-
So, I am trying to do a protection item for a survival server, and it should protect stuff inside a colshape surrounding it but how do I find out if the colshapes isn't intersecting with other ones near it? Thanks.
-
Thanks a lot!
-
Hello guys, is there any way to calculate seconds into minutes and seconds? I store the player's play time as seconds such as 100 seconds, but I need to make a text gui which says "You have been alive for 12 minutes and 30 seconds"... So, how should I do this? Thanks.
-
Duh.. that was the idea in the first place. But there is no event like "onElementDimensionChange". I don't want to have a timer for that, as it takes up the server's resources and also may cause lag or network trouble...
-
Hey, so I am attaching an object to a vehicle, and when the vehicle changes interior or dimension, the object doesn't follow the vehicle. I tried onClientPreRender but it drops my FPS to 1 or 2... So it is something wrong with it. So, what can I do to make the attached object follow the vehicle when it changes interior or/and dimension? Thank you.
-
Lol, didn't know I could do that, thanks
-
Hello guys, recently I noticed some scripts that used tables and pairs but I never seen them being used like this before. When I manipulate a table I do something like: for i, v in pairs(table) do v[1] = thePlayer v[2] = vehicle end But instead of using "v[number]", some scripts use "v.varName", like this one: for i,objectData in pairs(mapObjects) do local object = createObject(objectData.model,objectData.posX,objectData.posY,objectData.posZ,objectData.rotX,objectData.rotY,objectData.rotZ) May please someone explain to me how is this done? Thank you.
-
EDIT! Fixed!
-
Well that's the thing, remoting won't be a problem, but the forum bit is. Isn't there a built in function that returns true or false if the password was correct/incorrect?
