/prop command - gives prop's location (such as model/x/x)
#11
(05-15-2017, 03:03 PM)SnowredWolf Wrote:
(05-15-2017, 02:53 PM)connbob Wrote:
(05-15-2017, 02:45 PM)SnowredWolf Wrote: I've seen this suggested before, no idea where the suggestion went though.
This would be a good addition, both for the author of a build but also for people wanting to know what props people use to build with.

+Support

Side note: The code you've posted in the OP would not fit FL as it doesn't follow the general CityRP command structure.

Ah, learning gLua now so just something simple I threw together.

Something like this would probably work, just wrote it quickly to give you a general idea.  Smile


Spoiler :
Code:
-- Command to print path of current prop the user is looking at
cityrp.command.add("getprop", "b", 0, function(ply)
    local ent = ply:GetEyeTrace().Entity
    if IsEntity(ent) then
        ply:ChatPrint(ent:GetModel())
    else
        ply:Notify("You are not aiming at a valid entity!", 1)
    end
end, "Commands", "<none>", "Prints the path of the prop you are looking at")



Thanks!


Messages In This Thread
RE: /prop command - gives prop's location (such as model/x/x) - by Conn - 05-15-2017, 03:06 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)