Oh , do you mean I have to check if Element = Ped Or Vehicle or .... ?
function D()
local players = getElementsByType ( "player" ) -- get a table of all the players in the server
for theKey,thePlayer in ipairs(players) do
if (getElementData (thePlayer, "R") == true) then
outputChatBox("true",root,0,255,0,true)
else
outputChatBox("false",root,0,255,0,true)
end
end
end
setTimer(D,15000,0)