Fearless Forums
/prop command - gives prop's location (such as model/x/x) - Printable Version

+- Fearless Forums (https://fearlessrp.net)
+-- Forum: CityRP Server (https://fearlessrp.net/forumdisplay.php?fid=6)
+--- Forum: Suggestions (https://fearlessrp.net/forumdisplay.php?fid=7)
+---- Forum: Finished (https://fearlessrp.net/forumdisplay.php?fid=26)
+---- Thread: /prop command - gives prop's location (such as model/x/x) (/showthread.php?tid=80520)

Pages: 1 2


RE: /prop command - gives prop's location (such as model/x/x) - Conn - 05-15-2017

(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!


RE: /prop command - gives prop's location (such as model/x/x) - Eclipze - 05-15-2017

+Support


RE: /prop command - gives prop's location (such as model/x/x) - Mustang - 05-15-2017

+Support


RE: /prop command - gives prop's location (such as model/x/x) - MrFinnConlon - 05-15-2017

+Support, I believe this has already been approved.


RE: /prop command - gives prop's location (such as model/x/x) - Panda - 05-15-2017

https://www.fearlessrp.net/showthread.php?tid=77967&page=3


RE: /prop command - gives prop's location (such as model/x/x) - Rebdogg - 05-15-2017

+Support

Something like this but for materials would be good aswell!


RE: /prop command - gives prop's location (such as model/x/x) - Devon - 05-15-2017

Approved; suggestion with extreme similarity has been approved beforehand (https://www.fearlessrp.net/showthread.php?tid=77967)


RE: /prop command - gives prop's location (such as model/x/x) - Devon - 06-23-2017

Done