/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!
#12
+Support
Kind regards,
Eclipze
Fearless Donator
#13
+Support
#14
+Support, I believe this has already been approved.
Regards,
Finn Conlon 

 +Rep me Here
#15
https://www.fearlessrp.net/showthread.ph...967&page=3
Regards,
Panda
NOT AN Administrator
#16
+Support

Something like this but for materials would be good aswell!
Kind Regards,
[Image: qyVlGhw.png]
#17
Approved; suggestion with extreme similarity has been approved beforehand (https://www.fearlessrp.net/showthread.php?tid=77967)
[Image: KInLxEm.png]
#18
Done
[Image: KInLxEm.png]


Forum Jump:


Users browsing this thread: 1 Guest(s)