So basically I would need something like.
c4 = ents.Create("ttt_c4")
Target = ULib.getUser("Solunae")
aPlayer = Target:GetShootPos()
c4:SetPos(aPlayer)
c4:Spawn()
c4:SetDetonateTimer(100)
c4:SetArmed(true)
Correct? or am I missing something.
*Edit*
The following code was the first Lua I ever made and it worked. But the problem in this one was finding a specific player entity ID. If there is a easy way to retrieve someones ID off a dedicated server with ULX installed that would work fine too. (I'm not the owner off this server but a superadmin with lua, rcon, exec)
Also they don't seem to work with the ulx luarun (might have format wrong) in console, but they do work in the ULX menu Lua run
c4=ents.Create("ttt_c4")
Target=player.GetByID(1):GetShootPos()
c4:Spawn() c4:SetPos(Target)
c4:SetDetonateTimer(100)
c4:SetArmed(true)
c4=ents.Create("ttt_c4")
Target=player.GetAll()
c4:Spawn()
c4:SetPos(Target[5]:GetShootPos())
c4:SetDetonateTimer(1)
c4:SetArmed(true)
Alright, this code works with the name finding. At first it seemed to fail untill I tried it in the actual ULX menu and not the ulx luarun in console.
c4 = ents.Create("ttt_c4")
Target = ULib.getUser("Solunae")
aPlayer = Target:GetShootPos()
c4:SetPos(aPlayer)
c4:Spawn()
c4:SetDetonateTimer(100)
c4:SetArmed(true)
Thanks for the assistance.